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. Change permissions on the MapReduce diretory to include other users.

    1. Navigate to the the hadoop directory. For example:

      >cd C:\hdp\hadoop-2.2.0.2.0.6.0-0009\
    2. Add 757 permission recursively on the directory.

      >hadoop fs -chmod 757 /mapred
  2. Create a smoke test user in HDFS.

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

      >runas /user:hadoop cmd
    2. Navigate to the the hadoop directory. For example:

      >cd C:\hdp\hadoop-2.2.0.2.0.6.0-0009\bin\
    3. From the hadoop directory, change permissions on the mapreduce directory to make it accessible to other users. For example:

      >hadoop dfs -mkdir /user/smoketestuser 
    4. From the hadoop directory, create a smoketest user. For example:

      >hadoop dfs -mkdir /user/smoketestuser 
    5. Change ownership to the smoketest user.

      >hadoop dfs chown -R smoketestuser /user/smoketestuser
  3. Create a smoketestuser 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.

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

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

      >runas /user:smoketestuser cmd
    2. As smoketestuser, run the smoke tests:

      >Run-Smoktests.cmd

loading table of contents...