Skip to content

azkaban编译问题

  • what: azkaban编译问题
  • where: ubuntu:18.04 aarch64
  • when: 2021.11.08
  • who: JRT
  • why: 记录
  • how:

1.问题

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':azkaban-web-server:npm_install'.
> A problem occurred starting process 'command 'npm''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get m

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
62 actionable tasks: 7 executed, 55 up-to-date
root@4549c1fe23d0:/opt/azkaban-3.55.0# ls
CONTRIBUTING.md  az-core       az-flow-trigger-dependency-plugin  az-intellij-style.xml  azkaba
LICENSE          az-crypto     az-flow-trigger-dependency-type    az-jobsummary          azkaba
NOTICE           az-examples   az-hadoop-jobtype-plugin           az-reportal            azkaba
README.md        az-exec-util  az-hdfs-viewer                     azkaban-common         azkaba
root@4549c1fe23d0:/opt/azkaban-3.55.0# 

2.解决:

vim azkaban-web-server/build.gradle
#注释node配置
//node {
    // Version of node to use.
  //  version = '8.10.0'

    // Version of npm to use.
    //npmVersion = '5.6.0'

    // Base URL for fetching node distributions (change if you have a mirror).
   // distBaseUrl = 'https://nodejs.org/dist'

    // If true, it will download node using above parameters.
    // If false, it will try to use globally installed node.
   // download = false

    // Set the work directory for unpacking node
   // workDir = file("${project.buildDir}/nodejs")

    // Set the work directory where node_modules should be located
   // nodeModulesDir = file("${project.projectDir}")
//}

#执行
./gradlew clean
./gradlew --stop