Re: build Flink master brach fail due to npm
HI, Could you try adding "-Dskip.npm" when building the project? This is just a work-around way to skip this installation. Though I don't have much experience of npm. Maybe someone else could help. Thanks, Biao /'bɪ.aʊ/ On Tue, 20 Aug 2019 at 16:23, 刘波 <1091643...@qq.com> wrote: > Hi, users! > > When I'm build the Flink master branch from github, it's failed due to > the flink-runtime-web module. > nodejs v10.15.2 > npm6.10.3 > Javaopenjdk version "11.0.4" 2019-07-16 > maven 3.6.0 > > anyone got the same problem? any suggestions to resolve it... thanks~ > > > [INFO] > [INFO] --- maven-remote-resources-plugin:1.5:process > (process-resource-bundles) @ flink-runtime-web_2.11 --- > [INFO] > [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node > and npm) @ flink-runtime-web_2.11 --- > [INFO] Node v10.9.0 is already installed. > [INFO] > [INFO] --- frontend-maven-plugin:1.6:npm (npm install) @ > flink-runtime-web_2.11 --- > [INFO] Running 'npm ci --cache-max=0 --no-save' in > /home/ben/work/flink/flink-runtime-web/web-dashboard > [WARNING] npm WARN prepare removing existing node_modules/ before > installation > [INFO] > [INFO] > fsevents@1.2.7 install > /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/fsevents > [INFO] > node install > [INFO] > [ERROR] Aborted (core dumped) > [INFO] > [INFO] > node-sass@4.11.0 install > /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/node-sass > [INFO] > node scripts/install.js > [INFO] > [INFO] Cached binary found at > /home/ben/.npm/node-sass/4.11.0/linux-x64-64_binding.node > [ERROR] Aborted (core dumped) > [INFO] > [INFO] > husky@1.3.1 install > /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/husky > [INFO] > node husky install > [INFO] > [INFO] husky > setting up git hooks > [INFO] HUSKY_SKIP_INSTALL environment variable is set to 'true', skipping > Git hooks installation. > [ERROR] Aborted (core dumped) > [ERROR] npm ERR! code ELIFECYCLE > [ERROR] npm ERR! errno 134 > [ERROR] npm ERR! husky@1.3.1 install: `node husky install` > [ERROR] npm ERR! Exit status 134 > [ERROR] npm ERR! > [ERROR] npm ERR! Failed at the husky@1.3.1 install script. > [ERROR] npm ERR! This is probably not a problem with npm. There is likely > additional logging output above. > [ERROR] > [ERROR] npm ERR! A complete log of this run can be found in: > [ERROR] npm ERR! > /home/ben/.npm/_logs/2019-08-20T07_59_08_468Z-debug.log > [INFO] > >
Flink编译问题
大家好: 我这里用的cdh6.3.0版本进行hadoop管理。所以我根据官网上的显示,对flink的源码根据cdh6.3.0重新编译打包,但是在打包过程中,貌似发现了个问题: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project flink-yarn_2.11: Compilation failure [ERROR] /data1/flink/flink/flink-yarn/src/test/java/org/apache/flink/yarn/AbstractYarnClusterTest.java:[89,41] no suitable method found for newInstance(org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationAttemptId,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,,org.apache.hadoop.yarn.api.records.YarnApplicationState,,,long,long,org.apache.hadoop.yarn.api.records.FinalApplicationStatus,,,float,,) [ERROR] method org.apache.hadoop.yarn.api.records.ApplicationReport.newInstance(org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationAttemptId,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,org.apache.hadoop.yarn.api.records.Token,org.apache.hadoop.yarn.api.records.YarnApplicationState,java.lang.String,java.lang.String,long,long,long,org.apache.hadoop.yarn.api.records.FinalApplicationStatus,org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport,java.lang.String,float,java.lang.String,org.apache.hadoop.yarn.api.records.Token) is not applicable [ERROR] (actual and formal argument lists differ in length) [ERROR] method org.apache.hadoop.yarn.api.records.ApplicationReport.newInstance(org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationAttemptId,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,org.apache.hadoop.yarn.api.records.Token,org.apache.hadoop.yarn.api.records.YarnApplicationState,java.lang.String,java.lang.String,long,long,org.apache.hadoop.yarn.api.records.FinalApplicationStatus,org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport,java.lang.String,float,java.lang.String,org.apache.hadoop.yarn.api.records.Token,java.util.Set,boolean,org.apache.hadoop.yarn.api.records.Priority,java.lang.String,java.lang.String) is not applicable [ERROR] (actual and formal argument lists differ in length) [ERROR] method org.apache.hadoop.yarn.api.records.ApplicationReport.newInstance(org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationAttemptId,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,org.apache.hadoop.yarn.api.records.Token,org.apache.hadoop.yarn.api.records.YarnApplicationState,java.lang.String,java.lang.String,long,long,long,org.apache.hadoop.yarn.api.records.FinalApplicationStatus,org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport,java.lang.String,float,java.lang.String,org.apache.hadoop.yarn.api.records.Token,java.util.Set,boolean,org.apache.hadoop.yarn.api.records.Priority,java.lang.String,java.lang.String) is not applicable [ERROR] (actual and formal argument lists differ in length) Ps : 我执行的命令是:mvn clean install -DskipTests -Pvendor-repos -Dhadoop.version=3.0.0-cdh6.3.0 这个hadoop是3.0版本的
Flink CEP 支持Pattern以贪婪量词结尾吗?
"PATTERN(e1 e2+) WITHIN INTERVAL '10' minute " + //定义两个事件,e1和e2 WITHIN INTERVAL '10' MINUTE "DEFINE " + //-定义在PATTERN中出现的变量的具体含义。 "e1 as e1.name = 'Tom'," + //--事件⼀的action标记为tom "e2 as e2.name = 'Tom' and e2.location1 <> e1.location1" + //事件⼆的action标记为Tom,且事件⼀和事件⼆的location不⼀致。 “)" 运行抛出错误:Exception in thread "main" org.apache.flink.table.api.TableException: Greedy quantifiers are not allowed as the last element of a Pattern yet. Finish your pattern with either a simple variable or reluctant quantifier. | | 庞泳佑 | | 18511179...@163.com | 签名由网易邮箱大师定制
用python写flink程序,从哪里import各种operation?
在使用python写flink程序的时候,使用各种operation需要从不同的模块调用,官方给的几个样例的代码只用了部分的operation,在实际使用的时候,各种operation都应该从哪里调用呢?现在想使用WindowFunction,试了几个模块都不对。 发送自 Windows 10 版邮件应用
用python写flink程序,从哪里import各种operation?
在使用python写flink程序的时候,使用各种operation需要从不同的模块调用,官方给的几个样例的代码只用了部分的operation,在实际使用的时候,各种operation都应该从哪里调用呢?现在想使用WindowFunction,试了几个模块都不对。 发送自 Windows 10 版邮件应用
build Flink master brach fail due to npm
Hi, users! When I'm build the Flink master branch from github, it's failed due to the flink-runtime-web module. nodejs v10.15.2 npm6.10.3 Javaopenjdk version "11.0.4" 2019-07-16 maven 3.6.0 anyone got the same problem? any suggestions to resolve it... thanks~ [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ flink-runtime-web_2.11 --- [INFO] [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ flink-runtime-web_2.11 --- [INFO] Node v10.9.0 is already installed. [INFO] [INFO] --- frontend-maven-plugin:1.6:npm (npm install) @ flink-runtime-web_2.11 --- [INFO] Running 'npm ci --cache-max=0 --no-save' in /home/ben/work/flink/flink-runtime-web/web-dashboard [WARNING] npm WARN prepare removing existing node_modules/ before installation [INFO] [INFO] > fsevents@1.2.7 install /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/fsevents [INFO] > node install [INFO] [ERROR] Aborted (core dumped) [INFO] [INFO] > node-sass@4.11.0 install /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/node-sass [INFO] > node scripts/install.js [INFO] [INFO] Cached binary found at /home/ben/.npm/node-sass/4.11.0/linux-x64-64_binding.node [ERROR] Aborted (core dumped) [INFO] [INFO] > husky@1.3.1 install /home/ben/work/flink/flink-runtime-web/web-dashboard/node_modules/husky [INFO] > node husky install [INFO] [INFO] husky > setting up git hooks [INFO] HUSKY_SKIP_INSTALL environment variable is set to 'true', skipping Git hooks installation. [ERROR] Aborted (core dumped) [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! errno 134 [ERROR] npm ERR! husky@1.3.1 install: `node husky install` [ERROR] npm ERR! Exit status 134 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the husky@1.3.1 install script. [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [ERROR] [ERROR] npm ERR! A complete log of this run can be found in: [ERROR] npm ERR! /home/ben/.npm/_logs/2019-08-20T07_59_08_468Z-debug.log [INFO]