The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Windows – Other Forum

Python Errors

  • #50739
    S R

    I installed HDP 2.0 in Win 2012 Standard R2 Server as a Single Node Cluster. Downloaded the latest Python software 3.4.0 and JDK 1.8.0 Smoke Tests were failing (following err message) and I went to command line and tried the following command to see existing databases

    c:\hdp\hcatalog-\bin> -e “Show Databases”
    File “C:\hdp\hcatalog-\bin\”, line 143
    print “Would run:”
    SyntaxError: invalid syntax

    If anyone encountered the same issue and resolved, please let me know and appreciate it.


  • Author
  • #50744
    Rohit Bakhshi

    Hi S R,

    Can you please try the install with Python 2.7.x? We have not certified with Python 3.x, and that is different enough from Python 2.7 that I don’t see Python 3.x working.


    S R

    Thank You Rohit ! Will Uninstall latest Python Version and go back to Older version and test it out. Appreciate your quick response !

    S R

    Rohit – After Installing 2.7.6 Version of Python, the issue is resolved and Thank you. Currently the only Smoke Test that’s failing is WebHCatSmokeTest .

    Calling URL: http://WIN-ATKSGSRL5DL:50111/templeton/v1/ddl/database?
    Response: -1
    Run-WebHcatSmokeTest : WebHcat Smoke Test: FAILED
    At line:1 char:1
    + Run-WebHcatSmokeTest
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Run-WebHcatSmokeTest

    S R

    WebHCatSmokeTest issue is resolved. This might help others if they have similar issue that I faced

    When I first installed Python 3.4, looks like the webhcat-site.xml (under C:\hdp\hcatalog-\etc\webhcat) file is updated with the following entry as part of the HDP 2.0 installation process.


    I Uninstalled the Python 3.4 and installed Python 2.7 as suggested and updated the “PATH” Environmental value to c:\python27\
    I updated the the Property value to


    Note that I had to STOP and START the Services for the new values to be picked up. If not the old values are being cached and simple Property update may not help. Hope this helps !

    Thanks. Satya Raju.

The forum ‘HDP on Windows – Other’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.