steven-matison / dfhz_elk_mpack

Elasticsearch Management Pack for Ambari 2.6 & 2.7
15 stars 15 forks source link

Warning message while executing service_check.py #2

Closed NoFWayMan closed 3 years ago

NoFWayMan commented 4 years ago

At the end of adding elasticsearch service in the Ambari (2.7.4) Service Wizard to my HDP Stack (3.1.4) i received a warning message about execution of "service_check.py" script: SyntaxError: from future imports must occur at the beginning of the file

After a short search, I found out that the imports from the future module must be located at the beginning of the file. So i move "from future import print_function" line from "service_check.py" script to the top and warning message is gone.

steven-matison commented 4 years ago

Nice one, thanks for the feedback.