daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sqoop import -D mapred.map.child.java.opts='-Doracle.net.tns_admin=. -Doracle.net.wallet_location=.' -files $HOME/wallet/cwallet.sso,$HOME/wallet/ewallet.p12,$HOME/wallet/sqlnet.ora,$HOME/wallet/tnsnames.ora --connect jdbc:oracle:thin:@TEST2 --table SQOOP_TEST
  2.    
  3. TEST2=   (DESCRIPTION =
  4.     (ADDRESS_LIST =
  5.       (ADDRESS = (PROTOCOL = TCP)(HOST = <IP>)(PORT = 1521))
  6.     )
  7.     (CONNECT_DATA = (server=dedicated)
  8.       (SERVICE_NAME = HDPTEST )
  9.     )   )
  10.    
  11. Warning: /usr/local/hbase does not exist! HBase imports will fail.
  12. Please set $HBASE_HOME to the root of your HBase installation.
  13. Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
  14. Please set $HCAT_HOME to the root of your HCatalog installation.
  15. Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.
  16.  
  17. Please set $ACCUMULO_HOME to the root of your Accumulo installation.
  18. 17/06/08 15:06:15 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6
  19. 17/06/08 15:06:15 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  20. 17/06/08 15:06:16 DEBUG tool.BaseSqoopTool: Enabled debug logging.
  21. 17/06/08 15:06:16 DEBUG sqoop.ConnFactory: Loaded manager factory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
  22. 17/06/08 15:06:16 DEBUG sqoop.ConnFactory: Loaded manager factory: com.cloudera.sqoop.manager.DefaultManagerFactory
  23. 17/06/08 15:06:16 DEBUG sqoop.ConnFactory: Trying ManagerFactory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
  24. 17/06/08 15:06:16 DEBUG oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop can be called by Sqoop!
  25. 17/06/08 15:06:16 INFO oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop is disabled.
  26. 17/06/08 15:06:16 DEBUG sqoop.ConnFactory: Trying ManagerFactory: com.cloudera.sqoop.manager.DefaultManagerFactory
  27. 17/06/08 15:06:16 DEBUG manager.DefaultManagerFactory: Trying with scheme: jdbc:oracle:thin
  28. 17/06/08 15:06:16 DEBUG manager.OracleManager$ConnCache: Instantiated new connection cache.
  29. 17/06/08 15:06:16 INFO manager.SqlManager: Using default fetchSize of 1000
  30. 17/06/08 15:06:16 DEBUG sqoop.ConnFactory: Instantiated ConnManager org.apache.sqoop.manager.OracleManager@1d2adfbe
  31. 17/06/08 15:06:16 INFO tool.CodeGenTool: Beginning code generation
  32. 17/06/08 15:06:16 DEBUG manager.OracleManager: Using column names query: SELECT t.* FROM SQOOP_TEST t WHERE 1=0
  33. 17/06/08 15:06:16 DEBUG manager.SqlManager: Execute getColumnInfoRawQuery : SELECT t.* FROM SQOOP_TEST t WHERE 1=0
  34. 17/06/08 15:06:16 DEBUG manager.OracleManager: Creating a new connection for jdbc:oracle:thin:@TEST2, using username: null
  35. 17/06/08 15:06:16 DEBUG manager.OracleManager: No connection paramenters specified. Using regular API for making connection.
  36. 17/06/08 15:06:16 ERROR manager.SqlManager: Error executing statement: java.sql.SQLRecoverableException: IO Error: Unknown host specified
  37. java.sql.SQLRecoverableException: IO Error: Unknown host specified
  38.     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:743)
  39.     at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:662)
  40.     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  41.     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:560)
  42.     at java.sql.DriverManager.getConnection(DriverManager.java:664)
  43.     at java.sql.DriverManager.getConnection(DriverManager.java:270)
  44.     at org.apache.sqoop.manager.OracleManager.makeConnection(OracleManager.java:325)
  45.     at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
  46.     at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:744)
  47.     at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:767)
  48.     at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(SqlManager.java:270)
  49.     at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:241)
  50.     at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:227)
  51.     at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:295)
  52.     at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1833)
  53.     at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1645)
  54.     at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
  55.     at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
  56.     at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
  57.     at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
  58.     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
  59.     at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
  60.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
  61.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
  62.     at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
  63. Caused by: oracle.net.ns.NetException: Unknown host specified
  64.     at oracle.net.resolver.HostnameNamingAdapter.resolve(HostnameNamingAdapter.java:207)
  65.     at oracle.net.resolver.NameResolver.resolveName(NameResolver.java:131)
  66.     at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:476)
  67.     at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:595)
  68.     at oracle.net.ns.NSProtocol.connect(NSProtocol.java:230)
  69.     at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1452)
  70.     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)
  71.     ... 24 more
  72. 17/06/08 15:06:16 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
  73.     at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1651)
  74.     at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
  75.     at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
  76.     at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
  77.     at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
  78.     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
  79.     at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
  80.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
  81.     at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
  82.     at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
  83.    
  84. LISTENER = (ADDRESS_LIST=  
  85.  (ADDRESS=(PROTOCOL=tcps)(HOST=servername)(PORT=2484))
  86. )  WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(
  87. DIRECTORY=/server/wallet/path))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top