Hive 报错 Error while compiling statement: FAILED: ParseException line 1:0 character '' not supported here (state=42000,code=40000)

Hive error Error while compiling statement: FAILED: ParseException line 1: 0 character '' not supported here (state = 42000, code = 40000) 


Description:
sudden problem occurs, before also good script execution, today suddenly it is not alright HUE scheduling out the results are green, did not find any problems, but the resulting data is not
fine check, remove smoke inside the shell script script information number, after re-run, the problems began to surface ...
Error while compiling statement: FAILED: ParseException line 1:0 character '' not supported here (state=42000,code=40000)

Detailed error information is as follows:

  

 

 

 

solution:

The script information (eg: insert.hql) beeline -u need to perform the conversion of the encoding format is UTF-8 , remember that it is UTF-8 !!! re-upload the file to the HUE, re-run that is normal! ! !

(Here because I had set before encoding format script for Encode in UTF-8-BOM, so an error occurs, the data is not accurate, you had better remember coding do not make change file !!!)

 

 

 ps:

Attach a small problem, before time ran several discoveries HUE normal schedule, the result is green, but our results Curry data is not normal.

The reason:  Our final script which some forget the semicolon! hive script forget the semicolon at the end! ! ! Add a semicolon after the data is normal! ! !

There will need to carefully check the log error message: find the corresponding workflow   workdflow -> Tasks -> Error - > Jobxxxxx -> Tasks -> Map -> Attempt -> Container -> stderr ( probably View log steps)

 

 

Guess you like

Origin www.cnblogs.com/DFX339/p/11641692.html