I m getting following error. I have attached appropriate files. Please help I m on verge of completing my project.


5 Answer(s)


Hi Abhishek,

Check this error lines in the code:

{"text":"cybersecurity","indices":[53,67]},{"text":"cyberexpert","indices":[68,80]},{"text":"technology","indices":[81,92]},{"text":"tech","indices":[93,98]},{"text":"technews","indices":[99,108]},{"text":"bigdata","indices":[109,117]},{"text":"CTO","indices":[118,122]}],"user_mentions":[{"id":136975435,"name":"Astha Jain Podcast","ind
	at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:647)
	at org.apache.hadoop.hive.ql.exec.ExecMapper.map(ExecMapper.java:141)
	... 8 more
Caused by: org.apache.hadoop.hive.serde2.SerDeException: org.codehaus.jackson.JsonParseException: Unexpected end-of-input: was expecting closing '"' for name
 at [Source: java.io.StringReader@20ec6bb1; line: 1, column: 9161]
	at com.cloudera.hive.serde.JSONSerDe.deserialize(JSONSerDe.java:128)
	at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:632)
	... 9 more
Caused by: org.codehaus.jackson.JsonParseException: Unexpected end-of-input: was expecting closing '"' for name
 at [Source: java.io.StringReader@20ec6bb1; line: 1, column: 9161]

If you see the error, it says " Unexpected end-of-input: was expecting closing ' " ' for name "

If you check your code, you will find, it end with " "user_mentions":[{"id":136975435,"name":"Astha Jain Podcast","ind "

Please correct the structure, so it can readable by JSON parser.

Hope this helps.

Thanks.

 


Thanks Abhijit for reply. Yes i saw the log file. But where do i check the code?. And where to correct the structure. Please explain in detail every step so that i can complete my project. Thanks in advance. Please do reply ur help is needed.


Hi Abhishek,

The issue seems to be because of twitter data. Could you please share the twitter data with me, along with hive queries.

Thanks.


HI Abhijit Thanks for reply. I did the complete thing again. New twitter data and ran queries again This time it worked. Thanks for ur help.


Hi Abhishek,

Thanks for the update.