1

Has anyone ever had success running using python and windows with flink?

I'm trying the following command:

.\bin\pyflink.bat examples\python\WordCount.py

and getting the following error

Starting execution of program
Usage: ./bin/pyflink<2/3>.[sh/bat] <pathToScript>[ <pathToPackage1>[ <pathToPackageX]][ - <parameter1>[ <parameterX>]]

The program didn't contain a Flink job. Perhaps you forgot to call execute() on the execution environment.
Hellen
  • 3,472
  • 5
  • 18
  • 25
pokegoer
  • 11
  • 3
  • Please share some more details about what you have tried (version numbers etc) and also the full error you are getting. – Alexander Holsgrove Oct 28 '17 at 12:39
  • Exact command being executed and resulting error added above. Version is Version: 1.3.2, Commit ID: 0399bee on Windows 10 x64. – pokegoer Oct 29 '17 at 05:32

3 Answers3

0

The program didn't contain a Flink job. Perhaps you forgot to call execute() on the execution environment.

This looks like you forgot to add

env.execute(local=True)

in case you are running it locally. Without this the flink job wouldnt be able to execute. You can find more information with this simple example program

Biplob Biswas
  • 1,761
  • 19
  • 33
  • I've tried it with the simple example program you mentioned and with the local=True parameter. What I've noticed is that the filename provided to pyflink is irrelevant. I always get the same error. I could type ```pyflink nonExistentFile.py``` and I'd get the same error. – pokegoer Oct 31 '17 at 11:16
  • I am facing same issue. Any help? – NIrav Modi Jan 24 '19 at 14:47
0

I got this information in Win10. Maybe it is not supported at present. enter image description here

Dharman
  • 30,962
  • 25
  • 85
  • 135
13 FAR
  • 13
  • 2
0

In the following release-1.11, PyFlink will support windows in local mode. https://issues.apache.org/jira/browse/FLINK-12717

Xingbo Huang
  • 363
  • 1
  • 5