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:
Open a command prompt as the hadoop user:
runas /user:hadoop cmd
Change permissions on the MapReduce directory to include other users:
%HADOOP_HOME%\bin\hadoop fs -chmod -R 757 /mapred
Create a HDFS directory for the smoketest user:
%HADOOP_HOME%\bin\hadoop dfs -mkdir -p /user/smoketestuser
Change ownership to the smoketest user.
%HADOOP_HOME%\bin\hadoop dfs -chown -R smoketestuser /user/smoketestuser
Create a smoketest user account in Windows.
Navigate to Computer Management.
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:
Create the username and password for your smoke test user. Determine password requirements and select Create.
Validate the smoketest user by running smoketests as the smoketest user.
Switch to a command prompt as the smoktest user. For example:
runas /user:smoketestuser cmd
In the smoketest user, run the smoke tests:
%HADOOP_HOME%\Run-Smoketests.cmd