Reply
New Contributor
Posts: 2
Registered: ‎04-11-2017

docker cdh error

hello,

I just start to run cdh in docker today:

 

when I run this command:

clusterdock_run ./bin/start_cluster -n hadoop cdh --primary-node=node-1 --secondary-nodes='node-{2..4}'

 

I got the following error:

Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"

Aborting.
rm: cannot remove `/dfs/dn/current/BP-637181590-192.168.124.2-1469835153284/current/finalized/subdir0/subdir0': Directory not empty
rm: cannot remove `/dfs/dn/current/BP-637181590-192.168.124.2-1469835153284/current/finalized/subdir0/subdir1': Directory not empty
rm: cannot remove `/dfs/dn/current/BP-637181590-192.168.124.2-1469835153284/current/finalized/subdir0/subdir2': Directory not empty

Fatal error: run() received nonzero return code 1 while executing!

Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"

Aborting.

Fatal error: One or more hosts failed while executing task '_task'

Aborting.

 

how do I fix this problem?

If I ignore the above error, and run "docker ps -a",

I can see that it already get started:
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
83226bc6a783 docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node "/sbin/init" 11 minutes ago Up 11 minutes adoring_brown
dd072ad6a028 docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node "/sbin/init" 11 minutes ago Up 11 minutes gigantic_thompson
8af33ffab315 docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node "/sbin/init" 11 minutes ago Up 11 minutes goofy_jepsen
cc0eadd6c792 docker.io/cloudera/clusterdock:cdh580_cm581_primary-node "/sbin/init" 11 minutes ago Up 11 minutes 0.0.0.0:32769->7180/tcp, 0.0.0.0:32768->8888/tcp kickass_wescoff

 

If I run "docker attach cc0eadd6c792", it will hangup there.

 

any suggestions?

Announcements