

Pointers for smooth installation: – As of writing of this blog, Spark is not compatible with Java version>=9. In this tutorial, we will set up Spark with Python Development Environment by making use of Spark Python API (PySpark) which exposes the Spark programming model to Python. Use -input or -output to highlight the input and output path same as above example.Spark supports a number of programming languages including Java, Python, Scala, and R. To run Wordcount example on Local system use the following command.īefore that make an input file in a home directory, for example, C:\Users\dataflair\input.txt with some data as a sample and save it as input.txt or by any name of your choice (replace input.txt with your file name )Ĭ:\Users\dataflair\flink\bin flink.bat run C:\Users\dataflair\flink\examples\batch\WordCount.jar -input C:\Users\dataflair\input.txt -output C:\Users\dataflair\output.txt To check the status of running services simply change the path where your bin directory exist in JDK.Ĭ:\Users\dataflair\flink\bin cd C:\Program Files\Java\jdk1.7.0_79\bin Ĭ:\Program Files\Java\jdk1.7.0_79\bin jps Web interface by default on Don't close this batch window.

To Start Apache Flink in a local mode use this command.Ĭ:\Users\dataflair\flink\bin start-local.bat After that you will see this message on screen: To access the commands and to run the example jar change directory to flink by using this command.Ĭ:\Users\dataflair\flink cd bin IV.

Change the working directory to Flink Home In order to extract all the contents of compressed Apache Flink file package, right click on the file and select extract here or alternatively you can use other tools also like: 7-zip or tar tool. Download the latest version of Flink from official website To check whether installation procedure gets successfully completed and a completely working Java is installed or not and to know the version of Java installed we have to use the below command:Ĭ:\Users\dataflair\ java -version 2.3. In order to install Java, firstly we need to download it and then we will be able to install the Java. Platform RequirementsĪpache Flink requires Java to be installed as it runs on JVM. Stay updated with latest technology trends
