Skip to content

Commit

Permalink
[hotfix] fix PageRank example to run with no args; some doc fixes
Browse files Browse the repository at this point in the history
This closes apache#1714
  • Loading branch information
vasia committed Feb 26, 2016
1 parent 677425e commit 016644a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart/setup_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Run the __Word Count example__ to see Flink at work.
* __Start the example program__:

~~~bash
$ bin/flink run ./examples/WordCount.jar file:https://`pwd`/hamlet.txt file:https://`pwd`/wordcount-result.txt
$ bin/flink run ./examples/batch/WordCount.jar --input file:https://`pwd`/hamlet.txt --output file:https://`pwd`/wordcount-result.txt
~~~

* You will find a file called __wordcount-result.txt__ in your current directory.
Expand Down
4 changes: 2 additions & 2 deletions docs/setup/jobmanager_high_availability.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ specific language governing permissions and limitations
under the License.
-->

The JobManager is coordinates every Flink deployment. It is responsible for both *scheduling* and *resource management*.
The JobManager coordinates every Flink deployment. It is responsible for both *scheduling* and *resource management*.

By default, there is a single JobManager instance per Flink cluster. This creates a *single point of failure* (SPOF): if the JobManager crashes, no new programs can be submitted and running programs fail.

With JobManager High Availability, you can run recover from JobManager failures and thereby eliminate the *SPOF*. You can configure high availability for both **standalone** and **YARN clusters**.
With JobManager High Availability, you can recover from JobManager failures and thereby eliminate the *SPOF*. You can configure high availability for both **standalone** and **YARN clusters**.

* Toc
{:toc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void main(String[] args) throws Exception {
ParameterTool params = ParameterTool.fromArgs(args);
System.out.println("Usage: PageRankBasic --pages <path> --links <path> --output <path> --numPages <n> --iterations <n>");

final int numPages = params.getInt("numPages");
final int numPages = params.getInt("numPages", PageRankData.getNumberOfPages());
final int maxIterations = params.getInt("iterations", 10);

// set up execution environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class PageRankData {
{15L, 1L},
};

private static long numPages = 15;
private static int numPages = 15;

public static DataSet<Tuple2<Long, Long>> getDefaultEdgeDataSet(ExecutionEnvironment env) {

Expand All @@ -79,7 +79,7 @@ public static DataSet<Long> getDefaultPagesDataSet(ExecutionEnvironment env) {
return env.generateSequence(1, 15);
}

public static long getNumberOfPages() {
public static int getNumberOfPages() {
return numPages;
}

Expand Down

0 comments on commit 016644a

Please sign in to comment.