Chapter 9. Appendix: Adding a Smoketest User

Creating a smoketest user enables you to run HDP smoke tests without having to run them as the hadoop user.

To create a smoketest 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\hdfs fs -chmod -R 757 /mapred 

  3. Create an HDFS directory for the smoketest user:

     %HADOOP_HOME%\bin\hdfs dfs -mkdir -p /user/smoketestuser 

  4. Change ownership to the smoketest user.

     %HADOOP_HOME%\bin\hdfs 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 user name and password for your smoketest user. Determine password requirements and select Create.

  6. Validate the smoketest user by running the smoke tests as the smoketest user.

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

       runas /user:smoketestuser cmd

    2. As the smoketest user, run the smoke tests:


loading table of contents...