Hive cannot be accessed when spark2.0.0 is started ... /lib/spark-assembly-*.jar: There is no workaround for that file or directory

Source: Internet
Author: User

After the recent upgrade of the entire schema to spark 2.0.0, the problem was that every time a hive--service Metastore started, a small bug was always reported.

Unable to access/home/ndscbigdata/soft/spark-2.0.0/lib/spark-assembly-*.jar: There is no file or directory.


And what is going on in this line, there is no information on the Internet.


Have no way, had to step-by-step analysis, finally found the crux of the problem.


The main reason is this: in the hive.sh file, the discovery of such a command, originally initially when spark exists, the spark in the relevant jar package loading. And since spark upgraded to 2.0.0, the original Lib's entire large jar package has been replaced by a small jar package that has been dispersed, so there is definitely no way to find this spark-assembly jar package. This is where the problem lies.

# Add Spark assembly jar to the Classpath
if [[-N ' $SPARK _home]]
Then
Sparkassemblypath= ' ls ${spark_home}/lib/spark-assembly-*.jar '
Classpath= "${classpath}:${sparkassemblypath}"


Replace this Spark-assembly-*.jar ' with Jars/*.jar, and there will be no such problem.


This also confirms how each software upgrade process involves automatic transport or backward compatibility issues.

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.