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.
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.