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:
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\hdfs fs -chmod -R 757 /mapred
Create an HDFS directory for the smoketest user:
%HADOOP_HOME%\bin\hdfs dfs -mkdir -p /user/smoketestuser
Change ownership to the smoketest user.
%HADOOP_HOME%\bin\hdfs 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 orLocal Users and Groups > Action > New User
on Windows Server 2012. The New User dialog displays:Create the user name and password for your
smoketest
user. Determine password requirements and selectCreate
.
Validate the
smoketest
user by running the smoke tests as thesmoketest
user.Switch to a command prompt as the
smoketest
user. For example:runas /user:smoketestuser cmd
As the
smoketest
user, run the smoke tests:%HADOOP_NODE%\Run-Smoketests.cmd