oracle - Import data using sqoop with $ on the table name -


i encountering error importing data oracle database hive using sqoop:

sqoop command below:

sqoop import \ --connect jdbc:oracle:thin:@connectionstring/database \ --username username \ --password-file /path/password/file \ --query "select * \"dbo.log$_test_table\" \$conditions" \ --hcatalog-database hive_db \ --hcatalog-table log__test_table \ -m 1; 

here's error message after running command:

error manager.sqlmanager: error executing statement: java.sql.sqlsyntaxerrorexception: ora-00942: table or view not exist 

the table exist in oracle database, sql statement used (printed in screen) info manager.sqlmanager: executing sql statement: select * dbo.log (1=0)

the table name has been cut after '$' of specified table name.

already solved issue adding \$ in columns or table name has $.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -