Hadoop IOException failure to login

后端 未结 3 1257
青春惊慌失措
青春惊慌失措 2021-02-13 05:32

I\'m pretty new to Hadoop. However, I\'ve been able to successfully setup hadoop 2.7.3 with Java 7 in the cluster mode on my servers. Everything works totally fine.

But

3条回答
  •  萌比男神i
    2021-02-13 06:10

    I found that I don't have to take any special measures in code if I ensure that the docker image is properly configured for the jenkins user. The code I use to setup the image for the jenkins user for Debian/Ubuntu based images is:

    # Add Jenkins user
    groupadd --gid 1000 jenkins
    useradd --uid 1000 --gid jenkins --shell /bin/bash --home-dir /var/jenkins_home jenkins
    mkdir /var/jenkins_home
    chown 1000:1000 /var/jenkins_home
    echo 'jenkins ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-jenkins
    echo 'Defaults    env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
    

提交回复
热议问题