question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apache Hive - Cannot start a query with a comment

See original GitHub issue

Verified this works in hive/beeline (CLI). I am use ALT+X / Execute Query. Highlighting the entire block and using Execute Query (CTRL + ENTER) does not work.

image

image

Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
  Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
    org.apache.hadoop.hive.ql.parse.ParseException:line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
    org.apache.hadoop.hive.ql.parse.ParseException:line 2:0 cannot recognize input near 'set' 'hive' '.' in statement

Does not work

--Comment
set hive.auto.convert.join=false;

Works:

set hive.auto.convert.join=false;
--Comment

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Apr 26, 2018

No, I didn’t yet reproduce that yet. Don’t have live Hive instance at the moment. Will try on the next week.

0reactions
serge-ridercommented, Aug 26, 2018

Closing. If this problem will appear in 5.1.6 - please reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while running query on HIVE; - Cloudera Community
Solved: HI All, I am unable to run the simple query on HIVE i.e. describe ... FAILED: Execution Error, return code 1 from...
Read more >
Comments not working in hive CLI - Stack Overflow
Case is simple Hive accepts comments but not as a single line. If you try: --comment show tables;. or show tables --comment;.
Read more >
Comments in select query throwing errors in ODBC Hive Driver
Comments in select query throwing errors in ODBC Hive Driver Sample: select empno from ( SELECT emp.empno FROM ( -- FACILITY SELECT emp....
Read more >
Troubleshooting in Athena - AWS Documentation
This error message usually means the partition settings have been corrupted. To resolve this issue, drop the table and create a table with...
Read more >
GettingStarted - Apache Software Foundation
logger via the 'set' command does not change logging properties since they are determined at initialization time. Hive also stores query logs on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found