Member since
02-06-2018
47
Posts
6
Kudos Received
0
Solutions
06-05-2018
08:01 PM
it's throwing me following error if I have multiple column family in my Hbase table. Does this approach works only for the single column family ?
java.lang.RuntimeException: Hive Runtime Error while closing operators: java.io.IOException: Multiple family directories found in hdfs://hadoopdev/apps/hive/warehouse/temp.db/employee_details/_temporary/0/_temporary/attempt_1527799542731_1180_r_000000_0
... View more
04-17-2018
08:21 PM
@Naresh P R I am using following repo and it resolve my issue http://repo.hortonworks.com/content/groups/public/
... View more
04-16-2018
02:20 PM
@Naresh P R Thanks, Now I can resolve the dependancy However, not able to compile the code. I am getting following error. I tried to add the dependancy mentioned, However it's not helping either. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project hive-normalize: Failed to create assembly: Failed to resolve dependencies for project: ca.abc:hive-normalize:jar:1.0: Missing:
[ERROR] ----------
[ERROR] 1) org.mortbay.jetty:jetty-util:jar:6.1.ca26.hwx
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-util -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-util -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) ca.abc:hive-normalize:jar:1.0
[ERROR] 2) org.apache.hive:hive-exec:jar:1.2.1000.2.6.4.0-91
[ERROR] 3) org.apache.hive:hive-shims:jar:1.2.1000.2.6.4.0-91
[ERROR] 4) org.apache.hive.shims:hive-shims-0.23:jar:1.2.1000.2.6.4.0-91
[ERROR] 5) org.apache.hadoop:hadoop-hdfs:jar:2.7.3.2.6.4.0-91
[ERROR] 6) org.mortbay.jetty:jetty-util:jar:6.1.26.hwx
[ERROR]
[ERROR] 2) org.mortbay.jetty:jetty:jar:6.1.26.hwx
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jetty -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -DartifactId=jetty -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) ca.abc:hive-normalize:jar:1.0
[ERROR] 2) org.apache.hive:hive-exec:jar:1.2.1000.2.6.4.0-91
[ERROR] 3) org.apache.hive:hive-shims:jar:1.2.1000.2.6.4.0-91
[ERROR] 4) org.apache.hive.shims:hive-shims-0.23:jar:1.2.1000.2.6.4.0-91
[ERROR] 5) org.apache.hadoop:hadoop-hdfs:jar:2.7.3.2.6.4.0-91
[ERROR] 6) org.mortbay.jetty:jetty:jar:6.1.26.hwx
[ERROR]
[ERROR] 3) org.mortbay.jetty:jetty-sslengine:jar:6.1.26.hwx
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-sslengine -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-sslengine -Dversion=6.1.26.hwx -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) ca.abc:hive-normalize:jar:1.0
[ERROR] 2) org.apache.hive:hive-exec:jar:1.2.1000.2.6.4.0-91
[ERROR] 3) org.apache.hive:hive-shims:jar:1.2.1000.2.6.4.0-91
[ERROR] 4) org.apache.hive.shims:hive-shims-0.23:jar:1.2.1000.2.6.4.0-91
[ERROR] 5) org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:2.7.3.2.6.4.0-91
[ERROR] 6) org.apache.hadoop:hadoop-yarn-server-common:jar:2.7.3.2.6.4.0-91
[ERROR] 7) org.apache.hadoop:hadoop-yarn-registry:jar:2.7.3.2.6.4.0-91
[ERROR] 8) org.apache.hadoop:hadoop-common:jar:2.7.3.2.6.4.0-91
[ERROR] 9) org.mortbay.jetty:jetty-sslengine:jar:6.1.26.hwx
[ERROR]
[ERROR] ----------
[ERROR] 3 required artifacts are missing.
[ERROR]
[ERROR] for artifact:
[ERROR] ca.abc:hive-normalize:jar:1.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] hortonworks.extrepo (http://repo.hortonworks.com/content/repositories/releases, releases=true, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
... View more
04-12-2018
07:41 PM
hi Guys,
Could someone let me know how they decide which hive-exec jar version would be compatible with their Environment.
Here are the two approches I have take, the first one is failing and second one passes. However second approach is really messy and I would like to have first approach work somehow.
First Approach - Not Working
use the maven project to compile and build single (fat) jar.
check which version of hive-exec.jar hadoop is using from following directory
/usr/hdp/current/hive-client/lib/hive-exec.jar -> hive-exec-1.2.1000.2.6.4.0-91.jar
use the matching version as maven dependancy <dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>1.2.1</version>
</dependency>
Second Approach - Working Create the simple JAVA project (not the maven) copy the JAR from hadoop and add in classpath compile and create the class files Create a thin Jar (without any dependancies), Provide class path in mainfest.mf file Class-path: /usr/hdp/current/hive-client/lib/hive-exec.jar
... View more
Labels:
- Labels:
-
Apache Hive
04-11-2018
01:06 PM
@bkosaraju HDFS file has UTF-8 encoding and Netezza table also has UTF-8 encoding. the problem is with NFC (normalization)
... View more
04-10-2018
12:45 AM
I am trying to export the data from HDFS to Netezza and few french characters are giving me trouble. The only related post I found on internet is following. http://grokbase.com/t/sqoop/user/137gtanzx8/sqoop-utf-8-data-load-issue However the problem is I am not sure which configuration file he is talking about, would someone please let me know in which configuration file I need to provide, Connection Encoding?
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Sqoop
03-19-2018
06:16 PM
The issue was with the /n character at the end of the file. It works perfectly without issue on Netezza however it creates an issue on SQL Server following command to create new password file resolved the issue. tr -d '\n' < sqlserver_password.pass > sqlserver.pass
... View more
03-19-2018
03:05 PM
hi Guys, I am trying to export data from HDFS to SQL server, it works fine if I provide the password as argument. However, if I provide password file then it fails. Password file has only single line, password only. No New line or special character at the end of the line. The same thing works for Netezza, it fails only for SQL server Sqoop version: 1.4.6.2.5.3.0-37 Driver Jar: sqljdbc4-2.0.jar sqoop export --connect "jdbc:sqlserver://abc.com:58850;databaseName=IKB_PROD;schema=dbo;" --table "SQOOP_TEST_SMALL" --export-dir /tmp/SQOOP_TEST_SMALL_20180101_010101 --username HADOOP_USR --password-file /user/gaurang.shah/sqlserver_password.pass --verbose
Warning: /usr/hdp/2.5.3.0-37/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
18/03/19 14:30:17 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.5.3.0-37
18/03/19 14:30:17 DEBUG tool.BaseSqoopTool: Enabled debug logging.
18/03/19 14:30:17 DEBUG password.FilePasswordLoader: Fetching password from specified path: /user/gaurang.shah/sqlserver_password.pass
18/03/19 14:30:18 DEBUG sqoop.ConnFactory: Loaded manager factory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
18/03/19 14:30:18 DEBUG sqoop.ConnFactory: Loaded manager factory: com.cloudera.sqoop.manager.DefaultManagerFactory
18/03/19 14:30:18 DEBUG sqoop.ConnFactory: Trying ManagerFactory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
18/03/19 14:30:18 DEBUG oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop can be called by Sqoop!
18/03/19 14:30:18 DEBUG sqoop.ConnFactory: Trying ManagerFactory: com.cloudera.sqoop.manager.DefaultManagerFactory
18/03/19 14:30:18 DEBUG manager.DefaultManagerFactory: Trying with scheme: jdbc:sqlserver:
18/03/19 14:30:18 INFO manager.SqlManager: Using default fetchSize of 1000
18/03/19 14:30:18 DEBUG sqoop.ConnFactory: Instantiated ConnManager org.apache.sqoop.manager.SQLServerManager@6f0628de
18/03/19 14:30:18 INFO tool.CodeGenTool: Beginning code generation
18/03/19 14:30:18 DEBUG manager.SqlManager: Execute getColumnInfoRawQuery : SELECT t.* FROM [SQOOP_TEST_SMALL] AS t WHERE 1=0
18/03/19 14:30:18 DEBUG manager.SqlManager: No connection paramenters specified. Using regular API for making connection.
18/03/19 14:30:18 ERROR manager.SqlManager: Error executing statement: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'HADOOP_USR'.
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'HADOOP_USR'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:196)
at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:246)
... View more
Labels:
- Labels:
-
Apache Sqoop
03-07-2018
05:32 AM
@Rahul Soni Thanks for the great explanation. just a quick question, is there a way I can modify that value. Just in case if I need to restart the flow from some specific point
... View more
03-06-2018
03:58 AM
1 Kudo
@Constantin Stanca could you please explain the approach in detail.
... View more
- « Previous
-
- 1
- 2
- Next »