Zeppelin, hadoop, spark failed to solve

Trouble running zeppelin 0.6.x: (0.7.* does not require the following steps)
1. java.lang.NoSuchMethodError: org.apache.hadoop.tracing.SpanReceiverHost.get(Lorg/apache/hadoop/conf/

solution :
cd zeppelin-0.6.2-bin-all/lib
rm hadoop-annotations-×××.jar
rm hadoop-auth-×××.jar
rm hadoop-common-×××.jar

cp spark/jars/hadoop- annotations-×××.jar ./
​​cp spark/jars/hadoop-auth-×××.jar ./
​​cp spark/jars/hadoop-common-×××.jar ./

​​Restart zeppelin and the following problem occurs:
2. Spark Error: Could not initialize class org.apache.spark.rdd.RDDOperationScope
solution:
cd zeppelin-0.6.2-bin-all/lib
rm jackson-annotations-×××.jar
rm jackson-core-×××.jar
rm jackson-databind-×××.jar

cp spark/jars/jackson-databind-×××.jar ./
​​cp spark/jars/jackson-core-×××.jar ./
​​cp spark/jars/jackson-annotations-×××.jar ./

​​restart zeppelin solves the problem, be sure to restart zeppelin after deleting and copying

------------------------------------- -------------------------------------------------- --------------------------------------------------


zeppelin adds user name and password login function, you need to modify the configuration
conf/shiro.ini [urls] to the following
[urls]
#/api/version = anon
/api/interpreter/** = authc, roles[admin]
/ api/configurations/** = authc, roles[admin]
/api/credential/** = authc, roles[admin]
#/** = anon
/** = authc

add username and password and roles under [users], roles are

useless
Modify the following in conf/zeppelin-site.xml:
<property>
  <name>zeppelin.anonymous.allowed</name>
  <value>false</value>
  <description>Anonymous user allowed by default</description>
</property>After

modifying the configuration, you have to restart to take effect

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326691888&siteId=291194637