Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-320

Failed to start container with apache/hadoop-runner image.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • documentation
    • None
    • centos 7.4

    Description

      Following the doc in hadoop-ozone/doc/content/GettingStarted.md, the docker-compose up -d step failed, the error list list below:
      [root@VM_16_5_centos ozone]# docker-compose logs
      Attaching to ozone_scm_1, ozone_datanode_1, ozone_ozoneManager_1
      datanode_1 | Traceback (most recent call last):
      datanode_1 | File "/opt/envtoconf.py", line 104, in <module>
      datanode_1 | Simple(sys.argv[1:]).main()
      datanode_1 | File "/opt/envtoconf.py", line 93, in main
      datanode_1 | self.process_envs()
      datanode_1 | File "/opt/envtoconf.py", line 67, in process_envs
      datanode_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      datanode_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'
      datanode_1 | Traceback (most recent call last):
      datanode_1 | File "/opt/envtoconf.py", line 104, in <module>
      datanode_1 | Simple(sys.argv[1:]).main()
      datanode_1 | File "/opt/envtoconf.py", line 93, in main
      datanode_1 | self.process_envs()
      datanode_1 | File "/opt/envtoconf.py", line 67, in process_envs
      datanode_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:

      ozoneManager_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      ozoneManager_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'
      ozoneManager_1 | Traceback (most recent call last):
      ozoneManager_1 | File "/opt/envtoconf.py", line 104, in <module>
      ozoneManager_1 | Simple(sys.argv[1:]).main()
      ozoneManager_1 | File "/opt/envtoconf.py", line 93, in main
      ozoneManager_1 | self.process_envs()
      ozoneManager_1 | File "/opt/envtoconf.py", line 67, in process_envs
      ozoneManager_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      ozoneManager_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'
      scm_1 | Traceback (most recent call last):
      scm_1 | File "/opt/envtoconf.py", line 104, in <module>
      scm_1 | Simple(sys.argv[1:]).main()
      scm_1 | File "/opt/envtoconf.py", line 93, in main
      scm_1 | self.process_envs()
      scm_1 | File "/opt/envtoconf.py", line 67, in process_envs
      scm_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      scm_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'
      scm_1 | Traceback (most recent call last):
      scm_1 | File "/opt/envtoconf.py", line 104, in <module>
      scm_1 | Simple(sys.argv[1:]).main()
      scm_1 | File "/opt/envtoconf.py", line 93, in main
      scm_1 | self.process_envs()
      scm_1 | File "/opt/envtoconf.py", line 67, in process_envs
      scm_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      scm_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'
      scm_1 | Traceback (most recent call last):
      scm_1 | File "/opt/envtoconf.py", line 104, in <module>
      scm_1 | Simple(sys.argv[1:]).main()
      scm_1 | File "/opt/envtoconf.py", line 93, in main
      scm_1 | self.process_envs()
      scm_1 | File "/opt/envtoconf.py", line 67, in process_envs
      scm_1 | with open(self.destination_file_path(name, extension) + ".raw", "w") as myfile:
      scm_1 | IOError: [Errno 13] Permission denied: '/opt/hadoop/etc/hadoop/log4j.properties.raw'

      my docker-compose version is:
      docker-compose version 1.22.0, build f46880fe

      docker images:
      apache/hadoop-runner latest 569314fd9a73 5 weeks ago 646MB

      From the Dockerfile, we can see " chown hadoop /opt" command. It looks like we need a "-R " here?

      Attachments

        Activity

          People

            Unassigned Unassigned
            junjie Junjie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: