1. 程式人生 > >kettle-linux中執行hive的ktr報錯:Error connecting to database: using class org.apache.hive.jdbc.HiveDriver

kettle-linux中執行hive的ktr報錯:Error connecting to database: using class org.apache.hive.jdbc.HiveDriver

1.將windows環境中產生的ktr檔案上傳到linux環境中執行

[[email protected] data-integration]# ./pan.sh -file=/opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integration/workspace/hivetorizhi.ktr >> /opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integration/workspace/log/kettle5.log

2.檢視執行檔案

[[email protected] data-integration]# cat /opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integration/workspace/log/kettle.log 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
11:09:27,192 INFO  [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
11:09:28,727 INFO  [KarafInstance] 
*******************************************************************************
*** Karaf Instance Number: 1 at /opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integ ***
***   ration/./system/karaf/caches/pan/data-1                               ***
*** FastBin Provider Port:52901                                             ***
*** Karaf Port:8802                                                         ***
*** OSGI Service Port:9051                                                  ***
*******************************************************************************
七月 17, 2018 11:09:37 上午 org.apache.karaf.main.Main$KarafLockCallback lockAquired
資訊: Lock acquired. Setting startlevel to 100
2018-07-17 11:11:45.388:INFO:oejs.Server:jetty-8.1.15.v20140411
2018-07-17 11:11:45.510:INFO:oejs.AbstractConnector:Started 
[email protected]
:9051 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/core 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/configuration/beans 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/configuration/parameterized-types 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/configuration/security 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/ 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://www.w3.org/2005/08/addressing 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2004/08/addressing 七月 17, 2018 11:11:52 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-management (152) [org.apache.cxf.management.InstrumentationManager] 七月 17, 2018 11:11:53 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-wsdl (189) [org.apache.cxf.wsdl.WSDLManager] 七月 17, 2018 11:11:53 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (203) [org.apache.cxf.ws.policy.PolicyEngine, org.apache.cxf.policy.PolicyDataEngine, org.apache.cxf.ws.policy.AssertionBuilderRegistry, org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry, org.apache.cxf.ws.policy.PolicyBuilder, org.apache.cxf.ws.policy.PolicyAnnotationListener, org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider, org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry, org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.external.URIDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider, org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder, org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider] 七月 17, 2018 11:11:53 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (156) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider] 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/transports/http/configuration 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (192) [org.apache.cxf.binding.soap.SoapBindingFactory, org.apache.cxf.binding.soap.SoapTransportFactory] 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxrs 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxrs-client 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (191) [org.apache.cxf.binding.xml.XMLBindingFactory, org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader] 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/bindings/soap 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/simple 七月 17, 2018 11:11:54 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (194) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver] 11:11:57,763 ERROR [KarafLifecycleListener] The Kettle Karaf Lifecycle Listener failed to execute properly after waiting for 100 seconds. Releasing lifecycle hold, but some services may be unavailable. 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxws 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/binding/coloc 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-local (199) [org.apache.cxf.transport.local.LocalTransportFactory] 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-object (200) [org.apache.cxf.binding.object.ObjectBindingFactory] 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/binding/object 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/policy 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://www.w3.org/ns/ws-policy 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://www.w3.org/2006/07/ws-policy 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2004/09/policy 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://www.w3.org/2000/09/xmldsig# 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (220) [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider, org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader, org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier, org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader] 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/ws/addressing 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-security (222) [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader, org.apache.cxf.ws.security.cache.CacheCleanupListener] 七月 17, 2018 11:11:57 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-rm (224) [org.apache.cxf.ws.rm.RMManager, org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider, org.apache.cxf.ws.rm.policy.RM10AssertionBuilder, org.apache.cxf.ws.rm.policy.RM12AssertionBuilder, org.apache.cxf.ws.rm.policy.WSRMP12PolicyLoader, org.apache.cxf.ws.rm.policy.MC11PolicyLoader, org.apache.cxf.ws.rm.policy.RSPPolicyLoader] 七月 17, 2018 11:11:58 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://cxf.apache.org/ws/rm/manager 2018/07/17 11:11:58 - Pan - 開始執行. 七月 17, 2018 11:11:58 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register 資訊: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2005/02/rm/policy 七月 17, 2018 11:11:59 上午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 資訊: Adding the extensions from bundle org.apache.cxf.cxf-rt-javascript (225) [org.apache.cxf.javascript.JavascriptServerListener] 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - Unable to load database connection info from XML node 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - Unable to create new database interface 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - 2018/07/17 11:12:00 - SharedObjects (/root/.kettle/shared.xml) - database type with plugin id [HIVE2] couldn't be found! 處理過程停止,由於錯誤: 錯誤從XML檔案讀取轉換 錯誤從XML檔案讀取轉換 Unable to load database connection info from XML node Unable to create new database interface database type with plugin id [HIVE2] couldn't be found! org.pentaho.di.core.exception.KettleXMLException: 錯誤從XML檔案讀取轉換 錯誤從XML檔案讀取轉換 Unable to load database connection info from XML node Unable to create new database interface database type with plugin id [HIVE2] couldn't be found! at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:3402) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2758) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2710) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2687) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2667) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2632) at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2595) at org.pentaho.di.pan.Pan.main(Pan.java:397) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Caused by: org.pentaho.di.core.exception.KettleXMLException: 錯誤從XML檔案讀取轉換 Unable to load database connection info from XML node Unable to create new database interface database type with plugin id [HIVE2] couldn't be found! at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:3384) ... 12 more Caused by: org.pentaho.di.core.exception.KettleXMLException: Unable to load database connection info from XML node Unable to create new database interface database type with plugin id [HIVE2] couldn't be found! at org.pentaho.di.core.database.DatabaseMeta.<init>(DatabaseMeta.java:1013) at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2976) ... 12 more Caused by: org.pentaho.di.core.exception.KettleXMLException: Unable to create new database interface database type with plugin id [HIVE2] couldn't be found! at org.pentaho.di.core.database.DatabaseMeta.<init>(DatabaseMeta.java:977) ... 13 more Caused by: org.pentaho.di.core.exception.KettleDatabaseException: database type with plugin id [HIVE2] couldn't be found! at org.pentaho.di.core.database.DatabaseMeta.findDatabaseInterface(DatabaseMeta.java:584) at org.pentaho.di.core.database.DatabaseMeta.getDatabaseInterface(DatabaseMeta.java:558) at org.pentaho.di.core.database.DatabaseMeta.<init>(DatabaseMeta.java:974) ... 13 more ``` ``` SharedObjects (/root/.kettle/shared.xml) - Unable to load database connection info from XML node

報錯分析:

1.kettle無法解析連線型別中的hive2型別

2../kettle中沒有資料庫的連線資訊

因此:

1.將windows中的C:/user/**/.kettle資料夾上傳至linux環境的/root路徑下

2.檢視plugin.properties檔案中active.hadoop.configuration的值是什麼,就將windows環境中data-integration\plugins\pentaho-big-data-plugin\hadoop-configurations\cdh510資料夾 上傳到linux環境中相應的檔案路徑下

再次執行ktr檔案,報錯:

018/07/17 14:13:58 - Pan - 開始執行.
2018/07/17 14:13:59 - hivetorizhi - 為了轉換解除補丁開始  [hivetorizhi]
2018/07/17 14:14:05 - 表輸入.0 - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : An error occurred, processing will be stopped: 
2018/07/17 14:14:05 - 表輸入.0 - Error occurred while trying to connect to the database
2018/07/17 14:14:05 - 表輸入.0 - 
2018/07/17 14:14:05 - 表輸入.0 - Error connecting to database: (using class org.apache.hive.jdbc.HiveDriver)
2018/07/17 14:14:05 - 表輸入.0 - No suitable driver found for jdbc:hive2://192.168.50.248:10000/default
2018/07/17 14:14:05 - 表輸入.0 - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : 錯誤初始化步驟[表輸入]
2018/07/17 14:14:05 - hivetorizhi - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : 步驟 [表輸入.0] 初始化失敗!
2018/07/17 14:14:05 - 表輸入.0 - Finished reading query, closing connection.
不能準備和初始化這個轉換

說明kettle載入不到hive的驅動包。解決辦法:

去data-integration\plugins\pentaho-big-data-plugin\hadoop-configurations\cdh510\lib路徑下將hive*-cdh5.10.0.jar複製到data-integration\lib路徑下,仍然報錯。

本次測試連線到cdh是5.11版本,懷疑是jar的版本不對,統一將hive*-cdh5.10.0.jar,更換為hive-*-cdh5.11.0.jar。執行ktr任然報錯。

將hive原生安裝包中的hive-jdbc-1.1.0.jar上傳是data-integration\plugins\pentaho-big-data-plugin\hadoop-configurations\cdh510\lib路徑,執行失敗。

但是將hive-jdbc-1.2.1.jar或者hive-jdbc-1.2.2.jar上傳上去,就可以執行成功,至於為何,不太明白。

2018/07/19 17:07:59 - Pan - 開始執行.
2018/07/19 17:07:59 - hivetorizhi - 為了轉換解除補丁開始  [hivetorizhi]
七月 19, 2018 5:08:00 下午 org.apache.cxf.endpoint.ServerImpl initDestination
資訊: Setting the server's publish address to be /marketplace
七月 19, 2018 5:08:00 下午 org.apache.cxf.endpoint.ServerImpl initDestination
資訊: Setting the server's publish address to be /lineage
七月 19, 2018 5:08:00 下午 org.apache.cxf.endpoint.ServerImpl initDestination
資訊: Setting the server's publish address to be /i18n
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integration/launcher/../lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integration/plugins/pentaho-big-data-plugin/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2018/07/19 17:08:00 - 表輸入.0 - Finished reading query, closing connection.
2018/07/19 17:08:00 - 寫日誌.0 - 
2018/07/19 17:08:00 - 寫日誌.0 - ------------> 行號 1------------------------------
2018/07/19 17:08:00 - 寫日誌.0 - id = 1
2018/07/19 17:08:00 - 寫日誌.0 - name = 23
2018/07/19 17:08:00 - 寫日誌.0 - 
2018/07/19 17:08:00 - 寫日誌.0 - ====================
2018/07/19 17:08:00 - 寫日誌.0 - 完成處理 (I=0, O=0, R=1, W=1, U=0, E=0)
2018/07/19 17:08:01 - 表輸入.0 - 完成處理 (I=1, O=0, R=0, W=1, U=0, E=0)
2018/07/19 17:08:01 - Pan - 完成!
2018/07/19 17:08:01 - Pan - 開始=2018/07/19 17:07:59.418, 停止=2018/07/19 17:08:01.020
2018/07/19 17:08:01 - Pan - 1 秒後處理結束.
2018/07/19 17:08:01 - hivetorizhi -  
2018/07/19 17:08:01 - hivetorizhi - 程序 表輸入.0 成功結束, 處理了 1 行. ( 1 行/秒)
2018/07/19 17:08:01 - hivetorizhi - 程序 寫日誌.0 成功結束, 處理了 1 行. ( 1 行/秒)

相關推薦

kettle-linux執行hive的ktrError connecting to database: using class org.apache.hive.jdbc.HiveDriver

1.將windows環境中產生的ktr檔案上傳到linux環境中執行 [[email protected] data-integration]# ./pan.sh -file=/opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integr

安裝zabbix之後登陸Error connecting to database: No su

cti ffice art sock 問題 網絡 提醒 修改 指定位置 安裝zabbix之後登陸報錯:Error connecting to database: No such file or directory解決辦法:經過網絡上找了好久也沒見到個解決辦法,最後被一片文章

Maven+spring Error configuring application listener of class org.springframework.web.cont

Maven+spring 報錯:Error configuring application listener of class org.springframework.web.cont   錯誤資訊: SEVERE: Error configuring application

docker執行容器Error response from daemon: OCI runtime create failed

今天在虛擬機器執行docker映象時,一直報錯(具體報錯原因待分析),檢查了系統核心和作業系統版本,也沒有找到結果。[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.2.151

centos下執行yumError: Cannot retrieve metalink for repository: epel. Please verify its path

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 當我們安裝第三方擴充套件源後,yum的時候就會出現:Error: Cannot retrieve metalink for

spriing boot 啟動Cannot determine embedded database driver class for database type NONE

.class sre 5.0 sin via cor pan cep can 最近在學習使用spring boot。使用maven創建好工程,只引用需要用到的spring boot相關的jar包,除此之外沒有任何的配置。 寫了一個最簡單的例子,如下所示: 1 pa

spring boot 啟動Cannot determine embedded database driver class for database type NONE

info for bubuko 報錯 spring free 增加 .com control 錯誤原因:spring boot默認會加載org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfigurati

git error: failed to push some refs to 'https://github.com/Anderson-An/******.git'(已解決)

提交push 報錯: $ git push origin masterTo https://github.com/Anderson-An/******.git ! [rejected] master -> master (fetch first)error: failed to push some r

flume啟動 Could not find or load main class org.apache.flume.node.Application

修改flume的資料夾名稱後,啟動flume可能會失敗,錯誤資訊如下: Error: Could not find or load main class org.apache.flume.node.Application 這個是因為環境變數的問題。 export看一下是不是有個FLUME_HOME的

Android stuido 錯誤Error:Unable to find optional library: org.apache.http.legacy

今天在匯入新專案的時候出現了一個從來都沒有見過的錯誤,讓我鬱悶了很久,在網上也找了很多一樣錯誤解決方法,但是最終也是沒有解決,不能說網上的解決方法是錯誤,只能說網上的解決辦法是最基礎的,有時候不能夠解決問題,錯誤的截圖如下: 網上的解決辦法是: 1.   API23

linux 系統系統關機後,mysql啟動失敗ERROR 2002 (HY000): Can't connect to local MySQL server through socket '

自己在阿里雲伺服器上安裝好執行環境後,mysql都是正常使用的,昨天強制關閉伺服器後,重新啟動伺服器,發現數據庫無法啟動報錯:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/va

linux執行sh$’\r’: 未找到命令的解決

在windows 上,使用Pycharm寫xx.sh指令碼後,在Linux bash xx.sh會報$'\r': 未找到命令 原因   是因為命令直接從windows 複製過來導致的 解決   yum install dos2unix   dos2unix **.s

使用arm-none-linux-gnueabi-gcc –o hello hello.c編譯完成,在ARM上執行出現

問題: 使用arm-none-linux-gnueabi-gcc –o hello hello.c編譯完成,在ARM上執行出現報錯: -sh: ./hello: No such file or directory 原因: 因為我們的程式使用的是動態連結方式編譯的,而A

項目訪問controllerHTTP Status 500 - Servlet.init() for servlet spring threw exception

apr ssl .get beans index p s 配置 cnblogs lis 直接訪問controller路徑http://localhost:8080/index報錯: HTTP Status 500 - Servlet.init() for servlet

SSH執行hqlCaused by: org.hibernate.hql.ast.QuerySyntaxException: user is not mapped [from user where username = ?]

執行 occurred ble xml文件 ron red 報錯 temp caused 報錯信息: ERROR Dispatcher:38 - Exception occurred during processing request: user is not mapped

django執行pyRequested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured

setting 執行 添加 all ted tables IT clas core https://blog.csdn.net/heybob/article/details/49684261 django代碼下面直接run的時候報錯: django.core.excepti

Eclipsemaven專案org.springframework.web.filter.CharacterEncodingFilter

寫了一個demo,發現在tomcat中部署完專案,啟動時報錯。 1,問題描述 2,解決辦法 1)程式在部署完成後報錯,說明是程式是編譯通過的,即編譯編譯路徑Java Build Path沒問題。 2)此時檢視 專案Properties—Deployment

Linux使用yum命令安裝軟體時,連線不了網路ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

錯誤: 解決方案: 在/etc/sysconfig/network-scripts/ifcfg-eth0檔案中配置DNS資訊: vim /etc/sysconfig/network-scripts/ifcfg-eth0 # 進入檔案編輯 修改(新增DNS): DNS1=8.8.

VSC++程式應輸入宣告

在程式碼編寫的過程中,VS報錯:“應輸入宣告”。 比如在“if”或者一個已經定義好的變數下面有錯誤的紅線出現,滑鼠挪上去之後,就會顯示“應輸入宣告”。 1、前面有用“//”註釋資訊 //D:test\object\ int a = 1; 在一行註釋的最後有一個右斜槓,有可能系統將

python呼叫 imread ImportError: cannot import name imread

在使用Python載入影象時需要使用imread命令,但是: from scipy.misc import imread,imresize時提示  cannot import name imread