論壇首頁 綜合技術論壇

【sqoop2 error】 ERROR 42Y07 Schema SQOOP does not exist

瀏覽 157 次
精華帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隱藏帖 (0)
作者 正文
   發表時間:2019-06-05  

問題:

2019-06-01 09:48:22,376 INFO  [org.apache.sqoop.audit.AuditLoggerManager.initializeLoggers(AuditLoggerManager.java:121)] Audit Logger has been initialized: default
2019-06-01 09:48:22,377 INFO  [org.apache.sqoop.audit.AuditLoggerManager.initialize(AuditLoggerManager.java:79)] Audit logger manager initialized: OK
2019-06-01 09:48:22,378 INFO  [org.apache.sqoop.repository.RepositoryManager.initialize(RepositoryManager.java:91)] Setting system properties: {derby.stream.error.file=/home/zkkafka/sqoop2/logs/derbyrepo.log}
2019-06-01 09:48:22,384 INFO  [org.apache.sqoop.repository.JdbcRepositoryContext.<init>(JdbcRepositoryContext.java:156)] [repo-ctx] handler=org.apache.sqoop.repository.derby.DerbyRepositoryHandler, conn-url=jdbc:derby:/home/zkkafka/sqoop2/basedir/repository/SQOOP;create=true, driver=org.apache.derby.jdbc.EmbeddedDriver, user=sa, password=*****, jdbc-props={}, tx-isolation=READ_COMMITTED, max-conn=10
2019-06-01 09:48:22,750 INFO  [org.apache.sqoop.repository.derby.DerbyRepositoryHandler.initialize(DerbyRepositoryHandler.java:99)] DerbyRepositoryHandler initialized.
2019-06-01 09:48:22,753 INFO  [org.apache.sqoop.repository.JdbcRepositoryProvider.initializeRepositoryHandler(JdbcRepositoryProvider.java:160)] JdbcRepositoryProvider initialized
2019-06-01 09:48:22,753 INFO  [org.apache.sqoop.repository.JdbcRepositoryProvider.initialize(JdbcRepositoryProvider.java:67)] JdbcRepository initialized.
2019-06-01 09:48:22,753 INFO  [org.apache.sqoop.repository.RepositoryManager.initialize(RepositoryManager.java:127)] Creating or updating respository at bootup
2019-06-01 09:48:26,785 INFO  [org.apache.sqoop.repository.JdbcRepository$1.doIt(JdbcRepository.java:131)] Creating repository schema objects
2019-06-01 09:48:27,149 INFO  [org.apache.sqoop.repository.derby.DerbyRepositoryHandler.detectRepositoryVersion(DerbyRepositoryHandler.java:191)] Can't fetch repository structure version.
org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed
	at org.apache.commons.dbcp.PoolingConnection.prepareStatement(PoolingConnection.java:113)
	at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
	at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
	at org.apache.sqoop.repository.derby.DerbyRepositoryHandler.detectRepositoryVersion(DerbyRepositoryHandler.java:177)
	at org.apache.sqoop.repository.derby.DerbyRepositoryHandler.createOrUpgradeRepository(DerbyRepositoryHandler.java:201)
	at org.apache.sqoop.repository.JdbcRepository$1.doIt(JdbcRepository.java:132)
	at org.apache.sqoop.repository.JdbcRepository.doWithConnection(JdbcRepository.java:91)
	at org.apache.sqoop.repository.JdbcRepository.doWithConnection(JdbcRepository.java:62)
	at org.apache.sqoop.repository.JdbcRepository.createOrUpgradeRepository(JdbcRepository.java:128)
	at org.apache.sqoop.repository.RepositoryManager.initialize(RepositoryManager.java:128)
	at org.apache.sqoop.repository.RepositoryManager.initialize(RepositoryManager.java:82)
	at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:60)
	at org.apache.sqoop.server.SqoopJettyServer.<init>(SqoopJettyServer.java:67)
	at org.apache.sqoop.server.SqoopJettyServer.main(SqoopJettyServer.java:177)
Caused by: java.sql.SQLSyntaxErrorException: Schema 'SQOOP' does not exist
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
	at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
	at org.apache.commons.dbcp.PoolingConnection.makeObject(PoolingConnection.java:285)
	at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1179)
	at org.apache.commons.dbcp.PoolingConnection.prepareStatement(PoolingConnection.java:107)
	... 13 more
Caused by: java.sql.SQLException: Schema 'SQOOP' does not exist
	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
	... 29 more
Caused by: ERROR 42Y07: Schema 'SQOOP' does not exist
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown Source)
	at org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown Source)
	at org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown Source)
	at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
	at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
	at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
	at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
	at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
	at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
	at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
	at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
	at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
	at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
	... 23 more
2019-06-01 09:48:27,165 INFO  [org.apache.sqoop.repository.common.CommonRepositoryHandler.runQuery(CommonRepositoryHandler.java:2682)] QUERY(CREATE SCHEMA "SQOOP") Update count: 0
2019-06-01 09:48:27,276 INFO  [org.apache.sqoop.repository.common.CommonRepositoryHandler.runQuery(CommonRepositoryHandler.java:2682)] QUERY(CREATE TABLE "SQOOP"."SQ_CONNECTOR" ("SQC_ID" BIGINT GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) PRIMARY KEY, "SQC_NAME" VARCHAR(64), "SQC_CLASS" VARCHAR(255), "SQC_VERSION" VARCHAR(64) )) Update count: 0
2019-06-01 09:48:27,403 INFO  [org.apache.sqoop.repository.common.CommonRepositoryHandler.runQuery(CommonRepositoryHandler.java:2682)] QUERY(CREATE TABLE "SQOOP"."SQ_FORM" ("SQF_ID" BIGINT GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) PRIMARY KEY, "SQF_CONNECTOR" BIGINT, "SQF_OPERATION" VARCHAR(32), "SQF_NAME" VARCHAR(64), "SQF_TYPE" VARCHAR(32), "SQF_INDEX" SMALLINT, CONSTRAINT "SQOOP"."FK_SQF_SQC" FOREIGN KEY (

?

?

sqoop2 創建的derby第一次鏈接是沒有數據庫 SQOOP的,然后自動創建 SQOOP數據庫,并賦值元數據

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

論壇首頁 綜合技術版

跳轉論壇:
Global site tag (gtag.js) - Google Analytics 真人娱乐官方网站 长海县| 铅山县| 尤溪县| 本溪市| 永年县| 杨浦区| 阿克陶县| 确山县| 庆元县| 浙江省| 区。| 太仆寺旗| 鄂伦春自治旗| 伽师县| 新丰县| 加查县| 女性| 南部县| 珲春市| 广饶县| 博白县| 宁武县| 阿克| 古田县| 桦川县| 紫云| 广宗县| 浦东新区| 平湖市| 遂昌县| 龙泉市| 孟村| 兴宁市| 临颍县| 胶南市| 临颍县| 罗定市| 余江县| 尼玛县| 施秉县| 惠安县| 中牟县| 龙山县| 文山县| 灵石县| 石景山区| 浏阳市| 青神县| 汾阳市| 安乡县| 永定县| 腾冲县| 泗洪县| 长治县| 宁安市| 屯昌县| 满城县| 临沭县| 常山县| 河源市| 丹阳市| 达拉特旗| 罗甸县| 孟连| 牙克石市| 涞源县| 昂仁县| 霍城县| 聂荣县| 曲松县| 镶黄旗| 乌鲁木齐市| 溧水县| 台江县| 东兰县| 沁源县| 金华市| 祁东县| 荥经县| 武平县| 报价| 青川县| 永济市| 新竹市| 铜鼓县| 江阴市| 祥云县| 航空| 浏阳市| 华容县| 汪清县| 宁海县| 江城| 泰宁县| 龙南县| 东辽县| 庆阳市| 囊谦县| 兴化市| 象山县| 六盘水市| 嘉定区| 北京市| 邳州市| 广饶县| 宽城| 逊克县| 桃源县| 海兴县| 常宁市| 剑川县| 新巴尔虎右旗| 永清县| 辽阳市| 舟山市| 辛集市| 芦山县| 高唐县| 台中县| 镇平县| 财经| 南充市| 宁明县| 浑源县| 天全县| 沧州市| 射洪县| 清新县| 上栗县| 禹城市| 丰城市| 弥勒县| 汶川县| 马山县| 两当县| 罗定市| 常熟市|