1.  Adding a Smoke Test User

Creating a smoke test user lets you run HDP smoke tests without having to run them as the hadoop user. To create a smoke test user:

  1. Open a command prompt as the hadoop user:

    runas /user:hadoop cmd
  2. Change permissions on the MapReduce directory to include other users:

    %HADOOP_HOME%\bin\hadoop fs -chmod -R 757 /mapred
  3. Create a HDFS directory for the smoketest user:

    %HADOOP_HOME%\bin\hadoop dfs -mkdir -p /user/smoketestuser
  4. Change ownership to the smoketest user.

    %HADOOP_HOME%\bin\hadoop dfs -chown -R smoketestuser /user/smoketestuser
  5. Create a smoketest user account in Windows.

    1. Navigate to Computer Management.

    2. Select Local Users and Groups > File > Action > New User on Windows Server 2008 or Local Users and Groups > Action > New User on Windows Server 2012.

      The New User dialog displays:

    3. Create the username and password for your smoke test user. Determine password requirements and select Create.

  6. Validate the smoketest user by running smoketests as the smoketest user.

    1. Switch to a command prompt as the smoktest user. For example:

      runas /user:smoketestuser cmd
    2. In the smoketest user, run the smoke tests:

      %HADOOP_HOME%\Run-Smoketests.cmd

loading table of contents...