Zeppelin using the Hive Interpreter

Source: Internet
Author: User

This Zeppelin is the official 0.5.6 version, may be in the incubation stage, there may be some bug it.

Configuration
CP zeppelin-env. sh. Template zeppelin-env. SH
VI zeppelin-env. SH

Add to:

Export java_home=/usr/lib/jvm/java-1.8. 0-openjdk-1.8. 0.65-3. B17.axs7.ppc64leexport hadoop_conf_dir=/etc/hadoop/conf

Start Zepplein

.. /bin/zeppelin-daemon. SH start

Visit http://localhost:8080

Modify Hive Interpreter

Remember to modify the point on the right restart, restart the interpreter.

Inquire

This is a reflection of this bug.

One

Corresponding interpreter log:

Cat zeppelin-interpreter-hive--ldd-1. Log
INFO [ .- One- on Ten: .: -,238] ({pool-2-thread-8} Hiveinterpreter.java[interpret]:326)-Propertykey:default, SQL command:'SELECT * from Hehe.haha'INFO [ .- One- on Ten: .: -,328] ({pool-2-thread-8} schedulerfactory.java[jobfinished]:135)-Job remoteinterpretjob_1478009213237 finished by scheduler org.apache.zeppelin.hive.HiveInterpreter197014835

Two

Log:

INFO [ .- One- on Ten: ,: the,412] ({pool-2-thread- the} Hiveinterpreter.java[interpret]:326)-PropertyKey: *, SQL command:'ect COUNT (*) from Hehe.haha'ERROR [ .- One- on Ten: ,: the,412] ({pool-2-thread- the} Job.java[run]:182) -Job failedorg.apache.zeppelin.interpreter.InterpreterException:java.lang.NullPointerException at Org.apache.zeppelin.interpreter.ClassloaderInterpreter.interpret (Classloaderinterpreter.java: A) at Org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret (Lazyopeninterpreter.java: the) at Org.apache.zeppelin.interpreter.remote.remoteinterpreterserver$interpretjob.jobrun ( Remoteinterpreterserver.java: -) at Org.apache.zeppelin.scheduler.Job.run (Job.java:169)

Three

Log:

INFO [ .- One- on Ten: One: -, -] ({pool-2-thread-5} Hiveinterpreter.java[interpret]:326)-Propertykey:default, SQL command:'Select COUNT (*) from Hehe.haha'INFO [ .- One- on Ten: One: -,568] ({pool-2-thread-5} schedulerfactory.java[jobfinished]:135)-Job remoteinterpretjob_1478009477499 finished by scheduler org.apache.zeppelin.hive.HiveInterpreter197014835

Conclusion : The official said%hive (${prefix}), if not the default prefix, but from the above can be seen, the first time without default, select * Can query, but select COUNT (*) will be error, As can be seen from the log, it identified the count (*) in parentheses in the * Propertykey,select statement parsing has also changed, resulting in the Java null pointer exception, but from the third can be seen, plus default,hive interpreter parsing and become normal. Feeling is a bug.

In general, you can use the hive interpreter. As the use of Zeppelin at that time or 0.5.6, after four months or so has been out of 3 versions, the latest version 0.6.2, more powerful. Follow up and explore its wonders.

Zeppelin using the Hive Interpreter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.