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:
Change permissions on the MapReduce diretory to include other users.
Navigate to the the hadoop directory. For example:
>cd C:\hdp\hadoop-2.2.0.2.0.6.0-0009\
Add 757 permission recursively on the directory.
>hadoop fs -chmod 757 /mapred
Create a smoke test user in HDFS.
Switch to a command prompt as the hadoop user. For example:
>runas /user:hadoop cmd
Navigate to the the hadoop directory. For example:
>cd C:\hdp\hadoop-2.2.0.2.0.6.0-0009\bin\
From the hadoop directory, change permissions on the mapreduce directory to make it accessible to other users. For example:
>hadoop dfs -mkdir /user/smoketestuser
From the hadoop directory, create a smoketest user. For example:
>hadoop dfs -mkdir /user/smoketestuser
Change ownership to the smoketest user.
>hadoop dfs chown -R smoketestuser /user/smoketestuser
Create a smoketestuser 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 smoktestuser. For example:
>runas /user:smoketestuser cmd
As smoketestuser, run the smoke tests:
>Run-Smoktests.cmd