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 – Installation Forum

Smoke Test Failing

  • #47935
    Carolus Holman

    I have a successful installation of HDP 2.0 for Windows, on Windows Server 2012 Datacenter R2. When I run the Smoke Test I get File Not Found errors. It seems the the Powershell Script is not using the Environment Variables to map to the files.

    Sample output:

    Hadoop smoke test - wordcount using hadoop.cmd file
    The system cannot find the path specified.
    Run-HadoopSmokeTest : Error copying the input file for the Hadoop smoke test
    At line:1 char:1
    + Run-HadoopSmokeTest
    + ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio

    gci : Cannot find path 'C:\share\hadoop\mapreduce' because it does not exist.
    At C:\hdp\Run-SmokeTests.ps1:62 char:26
    + $hadoopExamplesJAR = gci
    "$ENV:HADOOP_COMMON_HOME\share\hadoop\mapreduce\had ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (C:\share\hadoop\mapreduce:Strin
    g) [Get-ChildItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh

  • Author
  • #47936
    Carolus Holman

    UPDATE: I started the Hadoop command line (click the command line shortcut on the desktop), at the c:\hdp prompt enter: runas /user:hadoop cmd
    enter the password for the hadoop user.

    Then run: hadoop fs -chmod -R 755 /mapred

    This will allow you to run the first part of the smoke tests. I am still getting errors on the Hive Smoke Tests but I suspect it is related to the same permissions errors. This is not in the quick start guide for installing on a single node.
    Hope this helps other Newbies like me..

The forum ‘HDP on Windows – Installation’ 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.