Spark Hive reporting ClassNotFoundException: com.ibm.biginsights.bigsql.sync.BIEventListener

前端 未结 1 1830
名媛妹妹
名媛妹妹 2021-01-25 07:56

I\'m attempting to run a pyspark script on BigInsights on Cloud 4.2 Enterprise that accesses a Hive table.

First I create the hive table:

[biadmin@bi4c-x         


        
相关标签:
1条回答
  • 2021-01-25 08:39

    The solution was to use hive-site.xml from the spark-client folder:

    [biadmin@bi4c-xxxxxx-mastermanager ~]$ spark-submit \
        --master yarn-cluster \
        --deploy-mode cluster \
        --jars /usr/iop/4.2.0.0/hive/lib/datanucleus-api-jdo-3.2.6.jar, \
               /usr/iop/4.2.0.0/hive/lib/datanucleus-core-3.2.10.jar, \
               /usr/iop/4.2.0.0/hive/lib/datanucleus-rdbms-3.2.9.jar \
        --files /usr/iop/current/spark-client/conf/hive-site.xml \
    test_pokes.py
    

    This is captured in the docs: http://www.ibm.com/support/knowledgecenter/SSPT3X_4.2.0/com.ibm.swg.im.infosphere.biginsights.product.doc/doc/bi_spark.html

    0 讨论(0)
提交回复
热议问题