Apache Zeppelin 0.8.0-Snapshot“无法执行build:dist" (构建Zeppelin:Web应用程序) [英] Apache Zeppelin 0.8.0-Snapshot "Failed to exec build:dist" ( Building Zeppelin: web Application)

查看:117
本文介绍了Apache Zeppelin 0.8.0-Snapshot“无法执行build:dist" (构建Zeppelin:Web应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Maven构建Apache Zeppelin 0.8.0,我必须使用Zeppelin提供的高级功能,例如Apache Zeppelin笔记本授权允许跑步者" 但是我正在尝试使用不同版本的节点和npm,但是在mvn clean package -DskipTests期间仍在构建Building Zeppelin时收到以下错误:Web应用程序.
以下是调试日志中的错误日志:/root/.npm/_logs/2018-03-22T10_38_10_265Z-debug.log

I am building Apache Zeppelin 0.8.0 from maven and I have to use advanced features provided by Zeppelin e.g. Apache Zeppelin Notebook Authorization allow "Runners" But I am trying while different versions of node and npm but still getting the following error during mvn clean package -DskipTests for building Building Zeppelin: web Application.
Following is the error log from debug log: /root/.npm/_logs/2018-03-22T10_38_10_265Z-debug.log

还会在这个新版本(0.8.0)发布时吗?

Also when this new version( 0.8.0) will release?

1 verbose cli [ '/root/zeppelin/zeppelin-web/node/node',
1 verbose cli   '/root/zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build:dist' ]
2 info using npm@5.5.1
3 info using node@v8.9.3
4 verbose run-script [ 'prebuild:dist', 'build:dist', 'postbuild:dist' ]
5 info lifecycle zeppelin-web@0.0.0~prebuild:dist: zeppelin-web@0.0.0
6 info lifecycle zeppelin-web@0.0.0~build:dist: zeppelin-web@0.0.0
7 verbose lifecycle zeppelin-web@0.0.0~build:dist: unsafe-perm in lifecycle true
8 verbose lifecycle zeppelin-web@0.0.0~build:dist: PATH: /root/zeppelin/zeppelin-web/node/node_modules/npm/bin/node-gyp-bin:/root/zeppelin/zeppelin-web/node_modules/.bin:/root/zeppelin/zeppel$9 verbose lifecycle zeppelin-web@0.0.0~build:dist: CWD: /root/zeppelin/zeppelin-web
10 silly lifecycle zeppelin-web@0.0.0~build:dist: Args: [ '-c',
10 silly lifecycle   'npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt post-webpack-dist' ]
11 silly lifecycle zeppelin-web@0.0.0~build:dist: Returned: code: 3  signal: null
12 info lifecycle zeppelin-web@0.0.0~build:dist: Failed to exec build:dist script
13 verbose stack Error: zeppelin-web@0.0.0 build:dist: `npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt post-webpack-dist`
13 verbose stack Exit status 3
13 verbose stack     at EventEmitter.<anonymous> (/root/zeppelin/zeppelin-web/node/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/root/zeppelin/zeppelin-web/node/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid zeppelin-web@0.0.0
15 verbose cwd /root/zeppelin/zeppelin-web
16 verbose Linux 4.4.0-87-generic
17 verbose argv "/root/zeppelin/zeppelin-web/node/node" "/root/zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js" "run" "build:dist"
18 verbose node v8.9.3
19 verbose npm  v5.5.1
20 error code ELIFECYCLE
21 error errno 3
22 error zeppelin-web@0.0.0 build:dist: `npm-run-all prebuild && grunt pre-webpack-dist && webpack && grunt post-webpack-dist`
22 error Exit status 3
23 error Failed at the zeppelin-web@0.0.0 build:dist script.

推荐答案

您需要以非root用户身份运行maven build.如果与root用户一起使用,Bower将中断安装.

You need to run maven build with non-root user. Bower will break the install if used with root user.

以root身份执行任何管理任务(前提条件),将git repo放在用户空间下,并与用户一起在此处进行构建.

Do any admin task (prerequisite) with root, place git repo under user space and build it there with the user.

以下应与普通用户一起使用:

Below should work with a normal user:

#Prerequisites
sudo yum update -y
sudo yum install -y java-1.8.0-openjdk-devel git gcc-c++ make
#Using NODE.JS Version 8 (Version 10 / Actual also works).
curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -
sudo yum install -y nodejs fontconfig
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d    /yarn.repo
sudo yum install -y yarn
npm config set strict-ssl false
npm install -g bower

#Maven Enviroment
mkdir /usr/local/maven
cd /usr/local/maven
wget http://apache.rediris.es/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
tar xzvf apache-maven-3.5.4-bin.tar.gz --strip-components=1
sudo ln -s /usr/local/maven/bin/mvn /usr/local/bin/mvn
#Configure Maven to use more resources
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=1024m"

#Proxy Configs
#git config --global http.proxy http://your.company.proxy:port git config --global
#npm config set proxy http://your.company.proxy:8080
#npm config set https-proxy http://your.company.proxy:8080
#nano ~/.bowerrc
#{
#"proxy":"http ://:
#", "https-proxy":"http ://:
#"
#}

#Zeppelin Install
sudo useradd zeppelin
sudo su zeppelin
cd /home/zeppelin
git clone https://github.com/apache/zeppelin.git
cd zeppelin
mvn clean package -Dmaven.test.skip=true

希望它会有所帮助.

这篇关于Apache Zeppelin 0.8.0-Snapshot“无法执行build:dist" (构建Zeppelin:Web应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆