Skip to content

Instantly share code, notes, and snippets.

@winse
Last active April 19, 2017 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winse/c0012a743b354eafbbcf8d92cc68d8e6 to your computer and use it in GitHub Desktop.
Save winse/c0012a743b354eafbbcf8d92cc68d8e6 to your computer and use it in GitHub Desktop.
zeppelin-0.7.1 build on docker Centos6. Ref: http://zeppelin.apache.org/docs/0.7.1/install/build.html
tar zxvf zeppelin-0.7.1.tgz
cd zeppelin-0.7.1
./dev/change_scala_version.sh 2.11
# fix some network problems
MAVEN_REPO=/opt/repo
rm -rf $MAVEN_REPO/org/apache/pig/pig/0.16.0/*
rm -rf $MAVEN_REPO/org/apache/tez/tez-api/0.7.0/*
wget -P $MAVEN_REPO/org/apache/pig/pig/0.16.0/ http://nexus-private.hortonworks.com:8081/nexus/content/shadows/central-m1/org.apache.pig/jars/pig-0.16.0-h2.jar
wget -P $MAVEN_REPO/com/github/eirslett/yarn/0.18.1/yarn-0.18.1./ https://github.com/yarnpkg/yarn/releases/download/v0.18.1/yarn-v0.18.1.tar.gz
# install dependencies
# 1.
yum install git node npm R -y
# 2. fix docker cann't exec sudo
sed '/postinstall/{
a\
"postinstall": "bower install --silent --allow-root && grunt googlefonts",
d
}' zeppelin-web/package.json
# 3.
R -e 'install.packages("evaluate")'
# build
mvn clean package -Pbuild-distr -DskipTests -Pspark-2.1 -Phadoop-2.6 -Dhadoop.version=2.6.5 -Pyarn -Ppyspark -Psparkr -Pr -Pscala-2.11
[INFO] [4/4] Building fresh packages...
[INFO] $ bower install --silent && grunt googlefonts
[ERROR] [{
[ERROR] "code": "ESUDO",
[ERROR] "details": "Since bower is a user command, there is no need to execute it with superuser permissions.\nIf you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.\n\nhttp://www.joyent.com/blog/installing-node-and-npm\nhttps://gist.github.com/isaacs/579814\n\nYou can however run a command with sudo using --allow-root option",
[ERROR] "id": "ESUDO",
[ERROR] "level": "error",
[ERROR] "data": {},
[ERROR] "message": "Cannot be run with sudo",
[ERROR] "stacktrace": "Error: Cannot be run with sudo\n at createError (/build/java/zeppelin-0.7.1/zeppelin-web/node_modules/bower/lib/util/createError.js:4:15)\n at rootCheck (/build/java/zeppelin-0.7.1/zeppelin-web/node_modules/bower/lib/util/rootCheck.js:26:24)\n at Object.<anonymous> (/build/java/zeppelin-0.7.1/zeppelin-web/node_modules/bower/lib/bin/bower.js:33:1)\n at Module._compile (module.js:570:32)\n at Object.Module._extensions..js (module.js:579:10)\n at Module.load (module.js:487:32)\n at tryModuleLoad (module.js:446:12)\n at Function.Module._load (module.js:438:3)\n at Module.require (module.js:497:17)\n at require (internal/module.js:20:19)"
[ERROR] }]
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2017-04-18T08:52:52+00:00
[INFO] Final Memory: 19M/270M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install) on project zeppelin-web: Failed to run task: 'yarn install --no-lockfile' failed. (error code 1) -> [Help 1]
+ R CMD INSTALL --library=/build/java/zeppelin-0.7.1/r/R/../../R/lib /build/java/zeppelin-0.7.1/r/R/rzeppelin/
ERROR: dependency ‘evaluate’ is not available for package ‘rzeppelin’
* removing ‘/build/java/zeppelin-0.7.1/R/lib/rzeppelin’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment