我很困惑。我在这里遵循了每一条指令(https://github.com/apache/incubator-zeppelin) 安装Apache-Zeppelin。我需要这个用于Spark。
以下是UBUNTU(VM)中安装的各种必需应用程序
hduser@HDPMaster:~$ java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
hduser@HDPMaster:~$ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /usr/local/apache-maven-339
Java version: 1.7.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-43-generic", arch: "amd64", family: "unix"
hduser@HDPMaster:~$ node --version
v0.10.25
从Git Hub克隆Zeppelin
git clone https://github.com/apache/incubator-zeppelin.git
最初,我有Maven 3.0版本。其中一个线程建议使用版本> 3.3..安装了最新版本(3.3.9)。
执行了以下仍然失败的命令
mvn clean package -DskipTests -Pspark-1.5.2 -Phadoop-2.7.1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin ........................................... SUCCESS [ 32.205 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 36.457 s]
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 21.499 s]
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 51.142 s]
[INFO] Zeppelin: Spark .................................... SUCCESS [01:01 min]
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 3.089 s]
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 2.736 s]
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 2.813 s]
[INFO] Zeppelin: Hive interpreter ......................... SUCCESS [ 12.357 s]
[INFO] Zeppelin: Apache Phoenix Interpreter ............... SUCCESS [ 15.315 s]
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 4.681 s]
[INFO] Zeppelin: Tajo interpreter ......................... SUCCESS [ 6.417 s]
[INFO] Zeppelin: Flink .................................... FAILURE [ 6.133 s]
[INFO] Zeppelin: Apache Ignite interpreter ................ SKIPPED
[INFO] Zeppelin: Kylin interpreter ........................ SKIPPED
[INFO] Zeppelin: Lens interpreter ......................... SKIPPED
[INFO] Zeppelin: Cassandra ................................ SKIPPED
[INFO] Zeppelin: Elasticsearch interpreter ................ SKIPPED
[INFO] Zeppelin: web Application .......................... SKIPPED
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:17 min
[INFO] Finished at: 2016-01-13T06:12:12-08:00
[INFO] Final Memory: 122M/341M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "spark-1.5.2" could not be activated because it does not exist.
[WARNING] The requested profile "hadoop-2.7.1" could not be activated because it does not exist.
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.4:compile (scala-compile-first) on project zeppelin-flink: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.1.4:compile failed: Plugin net.alchim31.maven:scala-maven-plugin:3.1.4 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-core:jar:3.0.4, org.apache.maven:maven-settings:jar:3.0.4, org.apache.maven:maven-settings-builder:jar:3.0.4, org.apache.maven:maven-repository-metadata:jar:3.0.4, org.apache.maven:maven-plugin-api:jar:3.0.4, org.apache.maven:maven-model-builder:jar:3.0.4, org.apache.maven:maven-aether-provider:jar:3.0.4, org.sonatype.aether:aether-spi:jar:1.13.1, org.sonatype.aether:aether-impl:jar:1.13.1, org.sonatype.aether:aether-api:jar:1.13.1, org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0, org.apache.maven:maven-model:jar:3.0.4: Could not transfer artifact org.apache.maven:maven-core:jar:3.0.4 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-flink
不知道从哪里开始。 zeppelin文件夹中的任何设置是否需要进行任何更改?建议请。
答案 0 :(得分:1)
我不知道背后的原因,但这个问题已经解决了。我刚刚在早上运行了下面的命令并且构建成功了
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.superjoe.practicecard.FullscreenActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/goliath1"
android:scaleType="centerCrop"
android:id="@+id/imageGoliath"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, I'm Goliath."
android:textColor="#C62828"
android:textSize="36dp"
android:fontFamily="sans-serif-medium"
android:textStyle="bold"
android:id="@+id/ImGoliath"
android:layout_centerInParent="true"
android:layout_alignParentTop="true"
android:padding="12dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Don't be afraid, I don't bite..."
android:textSize="26dp"
android:fontFamily="sans-serif-medium"
android:textColor="#C62828"
android:id="@+id/afraid"
android:layout_below="@id/ImGoliath"
android:textStyle="bold|italic"
android:paddingLeft="12dp"
android:paddingBottom="18dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/unless"
android:text="Unless!"
android:textColor="#C62828"
android:textSize="52dp"
android:textStyle="bold"
android:layout_alignParentRight="true"
android:layout_below="@id/afraid"
android:padding="24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Youreacricket"
android:text="YOU'RE A CRICKET!"
android:textColor="#C62828"
android:layout_alignParentBottom="true"
android:textSize="42sp"
android:textStyle="bold"
android:layout_centerInParent="true"
android:paddingTop="60dp"/>
</RelativeLayout>
不确定背后是否存在逻辑,但如果有人知道请分享。
答案 1 :(得分:0)
如果你从git克隆了齐柏林飞艇,那么你需要去找主人&#39;文件夹(在命令行中)然后运行以下命令:
mvn clean package -DskipTests -Pspark-1.5.2 -Phadoop-2.7.1