参考:
http://www.aboutyun.com/thread-8921-1-1.html
auto wlan0
iface wlan0 inet static
address 10.32.37.124
gateway 10.32.37.1
netmask 255.255.255.0
broadcast 10.32.37.255
auto eth0
iface eth0 inet static
address 10.32.43.49
gateway 10.32.43.1
netmask 255.255.255.0
broadcast 10.32.43.255
sudo vim /etc/network/interfaces
sudo /etc/init.d/networking restart
sudo vim /etc/hosts
useradd --system --home=/opt/cm-5.0.0/run/cloudera-scm-server --no-create-home --shell=/bin/false --comment "Cloudera SCM User" cloudera-scm
/opt/cm-5.0.0/share/cmf/schema/scm_prepare_database.sh mysql cm -hlocalhost -uroot -phadoop --scm-host localhost scm scm scm
/opt/cm-5.0.0/share/cmf/schema/scm_prepare_database.sh mysql scm -hlocalhost -uroot -phadoop --scm-host localhost scm scm scm
sudo /opt/cm-5.0.0/share/cmf/schema/scm_prepare_database.sh mysql sum -hlocalhost -uroot -pedcwsxqwe --scm-host localhost scm scm scm
sudo /opt/cm-5.0.0/etc/init.d/cloudera-scm-server start
sudo cat /opt/cm-5.0.0/log/cloudera-scm-server/cloudera-scm-server.log
==========
这个问题让我郁闷了很久 就是启动不了
-ThinkPad-X200:/opt/cm-5.0.0$ sudo /opt/cm-5.0.0/etc/init.d/cloudera-scm-server start
Starting cloudera-scm-server: * Couldn't start cloudera-scm-server
后来发现 下载完mysqlconnector 直接解压产生了hbm.xml文件,污染了hibernate框架加载
mysql-connector-java-5.1.30 validation-api-1.1.0.Final.jar
commons-logging-1.1.1.jar jackson-dataformat-csv-2.1.0.jar mysql-connector-java-5.1.30-bin.jar velocity-1.7.jar
一定要注意
find -name '*.xml'