論壇首頁 綜合技術論壇

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

瀏覽 100 次
精華帖 (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 全天上海快3计划网 睢宁县| 原平市| 安塞县| 贵德县| 济南市| 临西县| 永兴县| 时尚| 河北区| 开封市| 乡宁县| 潼南县| 高碑店市| 永安市| 五家渠市| 丰镇市| 手游| 平远县| 沂源县| 五家渠市| 柘城县| 文山县| 务川| 凤翔县| 郯城县| 屏南县| 鄂伦春自治旗| 河东区| 罗定市| 麻栗坡县| 大邑县| 方正县| 汉中市| 宁陕县| 新邵县| 菏泽市| 永胜县| 洛浦县|