CDH啟動出現cloudera-scm-server一直掛掉
公司伺服器停電 ,在啟動CDH服務過程中cloudera-scm-server啟動一會就會掛掉 ,檢視日誌出現這樣的錯誤
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cloudera.server.cmf.TrialState': Cannot resolve reference to bean 'entityManagerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:392) at com.cloudera.server.cmf.Main.<init>(Main.java:242) at com.cloudera.server.cmf.Main.main(Main.java:216) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1440) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 17 more WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2:com.mchange.v2.resourcepool.BasicResourcePool:
[email protected]e -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (5). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ''@'localhost' to database 'null' at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.Util.getInstance(Util.java:408) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:943) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2198) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2229) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2024) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:779) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
最終發現時mysql資料庫的問題 ,
- 安裝服務 yum install mysql-server
- 開啟服務 service mysqld start
- 建立使用者名稱 mysqladmin -uroot password root 第一個root是使用者名稱,第二個root是密碼
- 登入 mysql -uroot -proot
- 設定開機啟動 chkconfig mysqld on
如果yum install mysql-server安裝出現問題:沒有可用包則
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm ls -1 /etc/yum.repos.d/mysql-community* yum install mysql-server
可能會出現Column count of mysql.proc is wrong. Expected 20....問題 ,由於你曾經升級過資料庫,升級完後未使用mysql_upgrade升級資料結構造成的。
執行 mysql_upgrade
進入
cd /cm-5.12.1/share/cmf/schema
ls
drwxr-xr-x 4 1106 4001 8192 Aug 19 2017 mysql
drwxr-xr-x 4 1106 4001 8192 Aug 19 2017 oracle
drwxr-xr-x 4 1106 4001 12288 Aug 19 2017 postgresql
-rw-r--r-- 1 1106 4001 1437 Aug 19 2017 scm_database_functions.sh
-rwxr-xr-x 1 1106 4001 12723 Aug 19 2017 scm_prepare_database.sh
執行
scm_prepare_database.sh mysql -uroot -p --scm-host localhost scm scm scm_password
然後再次啟動cloudera-scm-server ,成功
相關推薦
CDH啟動出現cloudera-scm-server一直掛掉
公司伺服器停電 ,在啟動CDH服務過程中cloudera-scm-server啟動一會就會掛掉 ,檢視日誌出現這樣的錯誤 Exception in thread "main" org.springframework.beans.factory.BeanCreationE
cloudera-scm-server啟動時出現Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could n
問題現象 檢視 [[email protected] cloudera-scm-server]# pwd /var/log/cloudera-scm-server [[email protected] cloudera-scm-server]#
啟動cloudera-scm-server時,報Unable to retrieve non-local address
Unable to retrieve non-local address “ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive: Unable to retrieve non-local non-loopback
Clouder Manager安裝時出現please remove the following file: /etc/cloudera-scm-server/db.properties問題解決(圖文詳解)
歡迎您的加入! 微信公眾號平臺: 大資料躺過的坑 微信公眾號平臺: 人工智慧躺過的坑 大資料和人工智慧躺過的坑(總群): 161156071 更多QQ技術分群,詳情請見:http://www.cnblogs.com/zls
Starting cloudera-scm-server: * Couldn't start cloudera-scm-server的解決辦法(圖文詳解)
[email protected]:/opt/cm-5.6.0/log/cloudera-scm-server$ pwd /opt/cm-5.6.0/log/cloudera-scm-server [email protected]:/opt/cm-5.6.0/log/cloude
解決HMaster啟動後幾秒之內馬上掛掉的問題
愛上看Hbase日誌,身為小白白的我,一開始日誌在哪我都不知道!路徑:cat $HBASE_HOME/logs/hbase-hadoop-master-Master.log(也就是安裝hbase下的logs資料夾中))。 日誌白茫茫一片怎麼看呢,其實Info什麼的都不用管,直奔ERR
關於MySQL資料庫 啟動之後使用一段時間掛掉問題
問題發生的場景 由於本人在自己的雲伺服器上搭建了一套網站系統,主要用於各種實驗用。在前兩天偶想起自己的部落格好久沒有更新了,自己墮落成這樣。於是在chrome 位址列中熟練的輸入我那令人魂
MySQL啟動出現Starting MySQL.The server quit without up
mysql 啟動 報錯 啟動mysql報錯:Starting MySQL.The server quit without updating PID file (/[失敗]ysql/Csslinux1.pid).解決辦法:1將 /etc/mysql 下的 my.cnf 文件刪除2cp /usr/lo
部署CM報錯(3):啟動agent報錯Starting cloudera-scm-agent: [FAILED]
一、問題描述 啟動cm的server成功,啟動agent的時候報錯,如下: [[email protected] init.d]# ./cloudera-scm-agent start Starting cloudera-scm-agent: [FAILED] 二、問題原因
ambari-server啟動出現Caused by: java.lang.RuntimeException:java.lang.ClassNotFoundEception:com.mysql.jdbc.Driver問題解決辦法(圖文詳解)
不多說,直接上乾貨! 問題詳解 啟動ambari-server出現 Caused by: java.lang.RuntimeException:java.lang.ClassNotFoundEception:com.mysql.jdbc.Driver
Eclipse 啟動出現錯誤 no java virtual machine was found
lips 報錯 msi file java pat 2.x default lan 在打開eclipse時,報錯信息如下: 出現此問題的原因是eclipse找不到javaw.exe的path 打開eclipse.ini文件: -startup plugins/org.ec
Windows Mysql啟動出現1069錯誤“由於登錄失敗而無法啟動服務”的處理方法
測試 hack src 服務 window bsp 安全性 失敗 技術分享 問題現象 windows下mysql服務無法啟動,報1069錯誤。 問題原因 如果Mysql啟動用戶的密碼或者權限錯誤,會導致Windows服務器Mysql啟動時出現"由於登錄失敗而無法啟動服務"
Win10首次啟動出現計算機意外地重啟或遇到錯誤的解決方法
windows 計算機 Win10系統 安裝完後首次開機時系統彈出窗口,提示:計算機意外重新啟動或遇到錯誤,導致系統安裝無法繼續。這是怎麽回事,下面讓小編來講解這個問題的解決方法吧。 故障分析: 首次啟動Win10系統時提示:計算機意外地重新啟動或遇到錯誤。Windows 安裝無法繼續。若要安裝W
Fedora 23 U盤啟動出現“Failed to load ldlinux.c32”解決 ZT
cells alt ner 下載 制作 log plain syn failed 利用UltraISO制作了Fedora 23的U盤啟動,開機F12鍵USB啟動時出現 1 2 Failed to load ldlin
Tomcat性能調優後, 啟動出現警告問題 [did not find a matching property.]
light title lis config tar ont nbsp dsm servlet http://blog.csdn.net/dracotianlong/article/details/8963594 Tomcat性能調優後, 啟動出現警告問題 [did
Tomcat 啟動出現警告問題Setting property 'minSpar eThreads' to '25' did not find a matching property
lin server http1 max accep quest 重新 ble cat tomcat啟動報錯: Jul 19, 2017 3:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule beginWAR
windows能連網絡,可是打不開網頁,出現無法解析server的DNS
http white 能夠 嘗試 影音 server ipc data- 應用 首先,我想先說作為一名剛學完計算機網絡課的學生,並且還完畢了學校的號稱和斯坦福一個難度級別的網絡實驗之後。我覺得自己對於計算機網絡還是勉強入門了。對於各種之前僅僅是聽過的各種tcp、ht
tomcat啟動出現hibernate close
size sin 一個tomcat class 文件 文件中 brush -s jdk1.7 在tomcat中手動設置JAVA_HOME的value,在tomcat\catalina.bat中, rem set JAVA_HOME set JAVA_HOME="D:\
tomcat啟動(四)Catalina分析-server的啟動
let .get names present and 接下來 server set public 上一回load()方法解析講到xml解析完成。 load()內部接下來會獲取server getServer().setCatalina(this); 這個ser
記一次zabbix server掛掉的事件
src ive bsp action alert mas 但是 l數據庫 隊列 zabbix:3.0版本,采用一個server,多個proxy的模式(別人裝的,我剛入職,接手不久) 系統:Linux X86_64 配置:4 core 8G內存 經過: 上午11點,上完廁所回