Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Who agreed with this topic

Resolving Cloudera Manager Configuration Failures: Repairing Missing Linux Alternatives

avatar
Expert Contributor

i am trying to deploy client configuration on hbase , and it always fails , i am having 1 master , and 2 workers  , and here are the logs:

 

 

Generate client configuration.
Successfully generated client configuration.

 


Run 3 steps in parallel
Completed 2/3 steps successfully

 

 

 

Cleanup client configs that failed to deploy.
Successfully cleaned up client configs that failed to deploy.

 

Can't open /var/run/cloudera-scm-agent/process/740-deploy-client-config/hbase-conf/hive-env.sh: No such file or directory.
+ '[' '!' -e /etc/hbase ']'
+ cd /etc/hbase
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/taskcontroller.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/container-executor.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.py ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.map ']'
+ '[' -d conf -a '!' -L conf ']'
+ '[' -n '' ']'
+ rm -rf conf.cloudera.hbase
+ cp -a /var/run/cloudera-scm-agent/process/740-deploy-client-config/hbase-conf conf.cloudera.hbase
+ chmod -R ugo+r conf.cloudera.hbase
+ [[ HBASE == HIVE ]]
+ /usr/sbin/update-alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.cloudera.hbase 90
+ /usr/sbin/update-alternatives --auto hbase-conf

2nd log :

 

Can't open /var/run/cloudera-scm-agent/process/739-deploy-client-config/hbase-conf/hive-env.sh: No such file or directory.
+ '[' '!' -e /etc/hbase ']'
+ cd /etc/hbase
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/taskcontroller.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/container-executor.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.py ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.map ']'
+ '[' -d conf -a '!' -L conf ']'
+ '[' -n '' ']'
+ rm -rf conf.cloudera.hbase
+ cp -a /var/run/cloudera-scm-agent/process/739-deploy-client-config/hbase-conf conf.cloudera.hbase
+ chmod -R ugo+r conf.cloudera.hbase
+ [[ HBASE == HIVE ]]
+ /usr/sbin/update-alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.cloudera.hbase 90
/var/lib/alternatives/hbase-conf empty!

 

3rd log :

 

Can't open /var/run/cloudera-scm-agent/process/738-deploy-client-config/hbase-conf/hive-env.sh: No such file or directory.
+ '[' '!' -e /etc/hbase ']'
+ cd /etc/hbase
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/taskcontroller.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/container-executor.cfg ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.py ']'
+ for SPECIAL_FILE in '$DEST_PATH/{taskcontroller.cfg,container-executor.cfg,topology.py,topology.map}'
+ '[' -e /etc/hbase/conf.cloudera.hbase/topology.map ']'
+ '[' -d conf -a '!' -L conf ']'
+ '[' -n '' ']'
+ rm -rf conf.cloudera.hbase
+ cp -a /var/run/cloudera-scm-agent/process/738-deploy-client-config/hbase-conf conf.cloudera.hbase
+ chmod -R ugo+r conf.cloudera.hbase
+ [[ HBASE == HIVE ]]
+ /usr/sbin/update-alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.cloudera.hbase 90
+ /usr/sbin/update-alternatives --auto hbase-conf

 

so the problem is that hive-env.sh is not created , also having same problem on deploying client configuration for spark ,

 

and in the log it shows same error "hive-env.sh: No such file or directory."  

 ,,Please help me with this issue 

 

 

 

 

Who agreed with this topic