Hive Query returned non zero code - java

We are seeing different kinds of error messages(error code: 1,2,3) for the same query using hive. Can someone explain what is this error code and what does different error codes mean ? Please share if there is a proper documentation regarding the error messages. Thanks in advance.
Error:-
java.sql.SQLException: Query returned non-zero code: 2, cause: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

Found similar kind of post in archive here says "That's not the real error" and here's how to find it:
Go to the hadoop jobtracker web-dashboard, find the hive mapreduce
jobs that failed and look at the logs of the failed tasks. That will
show you the real error.

Related

Why does 'bodyPart.isMimeType("text/plain")' give the error 'Unable to load bodystructure'?

I am creating an application in Java to read mails from my GoDaddy webmail through Java. I have used javax.mail for this.
When I debug the program, it gives an error at the line: bodyPart.isMimeType("text/plain")
Unexpectedly, it processes the first mail in the right way but gives the error for the second mail.
Here is the complete stack trace:
javax.mail.MessagingException: Unable to load BODYSTRUCTURE
at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1306)
at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:465)
at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1050)
at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:986)
at asanaLambdaIntegrationDebugMode.getNameMailIdFromMessage(asanaLambdaIntegrationDebugMode.java:1318)
at asanaLambdaIntegrationDebugMode.main(asanaLambdaIntegrationDebugMode.java:978)
Any suggestions on this please?
Give a try to the workaround described here:
https://javaee.github.io/javamail/FAQ#imapserverbug
Hope this helps.

Cassandra Command Line Tutorial

I am trying to run the command line tutorial for Cassandra and am running into an error. This is what I ran.
bin/geomesa-cassandra ingest --contact-point localhost --key-space mykeyspace --catalog mycatalog --converter example-csv --spec example-csv examples/ingest/csv/example.csv
This is what I get in return.
What would cause this?
You need to specify the contact point as host:port. See the documentation for the connection parameters. I opened a ticket to improve the error handling for an incorrectly formatted contact point, so that the error will be more obvious.
Thanks,

Connect from Hive to HDFS (JSON Files)

I have already built up a hadoop cluster with apache flume to import twitter data, it works fine.
Now I wanna start analytics with apache hive on the twitter data. On the web I found following example from cloudera.
https://github.com/cloudera/cdh-twitter-example
But now, by creating the table, hive returns the following error message:
java.net.URISyntaxException: Relative path in absolute URI: text:STRING, Query returned non-zero code: 1,
cause: java.net.URISyntaxException: Relative path in absolute URI: text:STRING,
On web i didn't found something about this (only by starting hive), maybe someone here can help me!
Thanks!
Okay, first problem are solved by myself. forgot a semicolon on the command. sorry for this.
But now I get another error message after start jobs over hive. All Query Jobs on Hive abort after some seconds. In the Log I found only this:
2015-03-25 14:47:40,680 ERROR [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Container complete event for unknown container id container_1427105751169_0006_01_000030
Any Ideas here?

Neo4j Server fails to start embedded database

I've created a neo4j database embedded into my java application. Creating nodes, relationships, properties and querying all of them looks fine, but now I want to visualize the database just to check if everything is okay. So I tried to load the test.db inside my neo4j-Server edition (running on the same machine), but however I get all the time the following error:
Starting Neo4j Server failed: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, C:\Users\user\workspace\neo4j_emb_test\target\test.db
Don't know what's going wrong here. Does anybody has suggestions?
Thanks in advance !
Julian
edit:
Checking the logs returned following results:
2014-05-26 14:56:30.988+0000 ERROR [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#7f180826' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#71fc9ad0' was successfully initialized, but failed to start. Please see attached cause exception.: 'neostore' has a store version number that we cannot upgrade from. Expected 'NeoStore v0.A.0' but file is version 'NeoStore v0.A.3'.
2014-05-26 14:56:30.988+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Shutdown started
You cannot run two embedded instances against the same Neo4j database at the same time, you need to run Neo4j in stand-alone mode for that. Then you only have access to the REST API provided, and not the Java API.
I had the exact same experience a little while ago that was answered here: Disable locking of Neo4j graph database?

Is there a working jbpm3 tutorial?

i'm searching desperately for a working tutorial on how i can install jbpm3 and successfully
run the demo websale process from the jbpm-console.
With jbpm 3.2.9 (and jboss 5.0.1 or 4.2.3, with hypersonic) i am able to log into the jbpm console, but when I try to create and evaluate the Create new web sale order task, i get the following exceptions:
Error
Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: no applicable exception handler found
Closing the database context failed: An exception of type org.hibernate.exception.GenericJDBCException was thrown, with the message: Cannot open connection
Does someone know an jbpm3 tutorial which just works?
ok it seens that it is a problem concerning the hsqldb's missing support for two phase commit transactions. my own processes runned fine as long as i didnt use any timers.
the solution would be to install another db, for example postgres.

Categories

Resources