Giter Site home page Giter Site logo

Comments (11)

yangsishu avatar yangsishu commented on May 9, 2024

现在1.5的standalone 模式提交有问题,yarn没问题

from flinkstreamsql.

nuaabuaa07 avatar nuaabuaa07 commented on May 9, 2024

上面我写的有点问题。
我在使用yarn模式提交任务时,会提示Haven't been developed yet!
sh ./submit.sh -sql /home/jinzhiliang/test/flink/sqlTXT/sideSql.txt -name xctest -remoteSqlPluginPath /home/dl/projects/flink-1.5.4/plugins -localSqlPluginPath /home/dl/projects/flink-1.5.4/plugins -mode yarn -flinkconf /home/dl/projects/flink-1.5.4/conf -confProp {"time.characteristic":"EventTime","sql.checkpoint.interval":10000}

from flinkstreamsql.

yangsishu avatar yangsishu commented on May 9, 2024

你把你启动flink的命令发下

from flinkstreamsql.

nuaabuaa07 avatar nuaabuaa07 commented on May 9, 2024

启动flink的命令是 :
./bin/yarn-session.sh -n 2 -jm 1024 -tm 1024
提交任务的命令是:
sh ./submit.sh -sql /home/jinzhiliang/test/flink/sqlTXT/sideSql.txt -name xctest -remoteSqlPluginPath /home/dl/projects/flink-1.5.4/plugins -localSqlPluginPath /home/dl/projects/flink-1.5.4/plugins -mode yarn -flinkconf /home/dl/projects/flink-1.5.4/conf -confProp {"time.characteristic":"EventTime","sql.checkpoint.interval":10000}

from flinkstreamsql.

zoudaokoulife avatar zoudaokoulife commented on May 9, 2024

文档描述了。你要提交到yarn上需要添加 yarnconf 配置项

from flinkstreamsql.

nuaabuaa07 avatar nuaabuaa07 commented on May 9, 2024

添加yarnconf配置参数后,不会报Haven't been developed yet!错误了。
但是的集群配置了kerberos权限验证。任务提交到yarn上时估计被限制了。flinkstreamsql项目目前还没有针对kerberos做相关开发吧~~~
错误日志为:
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]
at com.dtstack.flink.sql.launcher.ClusterClientFactory.createYarnClient(ClusterClientFactory.java:152)
at com.dtstack.flink.sql.launcher.ClusterClientFactory.createClusterClient(ClusterClientFactory.java:61)
at com.dtstack.flink.sql.launcher.LauncherMain.main(LauncherMain.java:60)
Caused by: org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45

from flinkstreamsql.

yangsishu avatar yangsishu commented on May 9, 2024

现在还不支持kerberos

from flinkstreamsql.

nuaabuaa07 avatar nuaabuaa07 commented on May 9, 2024

关于kerberos认证的问题,我按照Cloudera官网 (https://www.cloudera.com/documentation/enterprise/5-15-x/topics/cdh_sg_princ_auth_java.html)上说明配置了认证信息。现在提交任务时不报kerberos的问题了。
但是出现如下错误:
Principal Authentication:
Exception in thread "main" java.lang.RuntimeException: java.lang.ClassCastException: org.apache.hadoop.yarn.proto.YarnServiceProtos$GetApplicationsRequestProto cannot be cast to com.google.protobuf.Message
at com.dtstack.flink.sql.launcher.ClusterClientFactory.createYarnClient(ClusterClientFactory.java:152)
at com.dtstack.flink.sql.launcher.ClusterClientFactory.createClusterClient(ClusterClientFactory.java:61)
at com.dtstack.flink.sql.launcher.LauncherMain.main(LauncherMain.java:69)
Caused by: java.lang.ClassCastException: org.apache.hadoop.yarn.proto.YarnServiceProtos$GetApplicationsRequestProto cannot be cast to com.google.protobuf.Message
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
at com.sun.proxy.$Proxy9.getApplications(Unknown Source)
at org.apache.hadoop.yarn.api.impl.pb.client.ApplicationClientProtocolPBClientImpl.getApplications(ApplicationClientProtocolPBClientImpl.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
at com.sun.proxy.$Proxy10.getApplications(Unknown Source)
at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.getApplications(YarnClientImpl.java:344)
at com.dtstack.flink.sql.launcher.ClusterClientFactory.createYarnClient(ClusterClientFactory.java:112)
... 2 more
貌似是类型转换错误,我的flink是1.5.2 on yarn部署的。hadoop是2.6.0版本,CDH是5.15.1,查看源代码是yarnClient.getApplications(set, enumSet) 这个方法时报错。

from flinkstreamsql.

nuaabuaa07 avatar nuaabuaa07 commented on May 9, 2024

请问,目前master分支支持1.5版本flink的standalone了吗?master里的内容打算何时同步到1.6分支里呢?

from flinkstreamsql.

yangsishu avatar yangsishu commented on May 9, 2024

近期会flink1.6的兼容做掉

from flinkstreamsql.

yangsishu avatar yangsishu commented on May 9, 2024

master是支持flink1.5版本的standalone

from flinkstreamsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.