Flink 1.2无法在HA群集模式下启动(Flink 1.2 does not start in HA Cluster mode)
我在本地安装了HA群集模式2 JobManagers 1 TaskManager的Flink 1.2,它一直拒绝在显示“正在启动群集”的模式下实际启动。 消息而不是“在ZooKeeper仲裁中启动具有2个主服务器和1个对等服务器的HA集群”。
显然在bin / config.sh中,它读取的配置如下:
# High availability if [ -z "${HIGH_AVAILABILITY}" ]; then HIGH_AVAILABILITY=$(readFromConfig ${KEY_HIGH_AVAILABILITY} "" "${YAML_CONF}") if [ -z "${HIGH_AVAILABILITY}" ]; then # Try deprecated value DEPRECATED_HA=$(readFromConfig "recovery.mode" "" "${YAML_CONF}") if [ -z "${DEPRECATED_HA}" ]; then HIGH_AVAILABILITY="none" elif [ ${DEPRECATED_HA} == "standalone" ]; then # Standalone is now 'none' HIGH_AVAILABILITY="none" else HIGH_AVAILABILITY=${DEPRECATED_HA} fi else HIGH_AVAILABILITY="none" fi fi
这意味着独立于配置文件中的“高可用性”键配置(在我的情况下值为“zookeeper”),它将设置为“none”并在bin / start-cluster.sh中
if [[ $HIGH_AVAILABILITY == "zookeeper" ]]; then # HA Mode readMasters echo "Starting HA cluster with ${#MASTERS[@]} masters." for ((i=0;i<${#MASTERS[@]};++i)); do master=${MASTERS[i]} webuiport=${WEBUIPORTS[i]} ssh -n $FLINK_SSH_OPTS $master -- "nohup /bin/bash -l \"${FLINK_BIN_DIR}/jobmanager.sh\" start cluster ${master} ${webuiport} &" done else echo "Starting cluster." # Start single JobManager on this machine "$FLINK_BIN_DIR"/jobmanager.sh start cluster fi
永远不会进入第一个if分支。
其他人面对这个?
I've installed Flink 1.2 in HA cluster mode 2 JobManagers 1 TaskManager locally and it kept refusing to actually start in this mode showing "Starting cluster." message instead of "Starting HA cluster with 2 masters and 1 peers in ZooKeeper quorum."
Apparently in the bin/config.sh it reads the configuration like:
# High availability if [ -z "${HIGH_AVAILABILITY}" ]; then HIGH_AVAILABILITY=$(readFromConfig ${KEY_HIGH_AVAILABILITY} "" "${YAML_CONF}") if [ -z "${HIGH_AVAILABILITY}" ]; then # Try deprecated value DEPRECATED_HA=$(readFromConfig "recovery.mode" "" "${YAML_CONF}") if [ -z "${DEPRECATED_HA}" ]; then HIGH_AVAILABILITY="none" elif [ ${DEPRECATED_HA} == "standalone" ]; then # Standalone is now 'none' HIGH_AVAILABILITY="none" else HIGH_AVAILABILITY=${DEPRECATED_HA} fi else HIGH_AVAILABILITY="none" fi fi
which means independently of what is configured for "high-availability" key in the configuration file (in my case value was "zookeeper") it will set that to "none" and in bin/start-cluster.sh
if [[ $HIGH_AVAILABILITY == "zookeeper" ]]; then # HA Mode readMasters echo "Starting HA cluster with ${#MASTERS[@]} masters." for ((i=0;i<${#MASTERS[@]};++i)); do master=${MASTERS[i]} webuiport=${WEBUIPORTS[i]} ssh -n $FLINK_SSH_OPTS $master -- "nohup /bin/bash -l \"${FLINK_BIN_DIR}/jobmanager.sh\" start cluster ${master} ${webuiport} &" done else echo "Starting cluster." # Start single JobManager on this machine "$FLINK_BIN_DIR"/jobmanager.sh start cluster fi
will never get in the first if branch.
Anyone else faced this?
原文:https://stackoverflow.com/questions/42793598
最满意答案
尝试这个:
var _urlpath = window.location.pathname.split('/').pop(); // or: $(location).attr('pathname').split('/').pop();
Try this:
var _urlpath = window.location.pathname.split('/').pop(); // or: $(location).attr('pathname').split('/').pop();
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
你不是指location.href吗? 这假设你在谈论window.location而不是其他东西。 返回Location对象,其中包含有关文档URL的信息,并提供更改该URL的方法。 您还可以指定此属性以加载其他URL。 位置不是dom中的元素,因此jQuery无法选择它。 所以你的代码就像这样: var currentUrl = window.location.href; Don't you mean just location.href? This is assuming you are talki ...
-
如何使用.attr(“href”)前面的参数添加当前url?(How to add current url with parameters infront of .attr(“href”)?)[2022-03-12]
请尝试以下操作,在将URL附加到网关URL以匹配更多URL之前,请注意escape URL,并略微优化: var externalLinkPattern = new RegExp("^http://" + window.location.host, "i"), gateway = "http://myurl.com/current/page?url="; $("a[href^='http:']").each(function() { if ( !externalLi ... -
如果您的URL遵循菜单的层次结构(即/user → /user/orders → /user/orders/something ,其中→表示子菜单),您可以使用简单的指令检查字符串包含: app.directive("menuHref", function() { return { restrict: "A", template: "
- {{ text }}
", scope: { ... -
我测试了以下语句,它确实有效。 $(function() { $("a").attr("href", "#123"); }); 如果我点击任何链接,毫无疑问,该位置实际上附加了#123。 我认为你的问题可能是,你的“.1”没有附加到一个锚对象。 在HTML规范中,只有超链接(和一些不相关的html标签)具有“href”属性。 这意味着,例如,你的.1实际上是一个,那么,即使你把href属性赋予它,它也没有任何默认行为 ...
this.href和$(this).attr(“href”)之间的区别(Difference between this.href and $(this).attr(“href”) [duplicate])[2022-06-04]
第一个版本, this.href直接从浏览器使用的javascript实现中读取属性。 当浏览器正在解释href属性并将其与当前主机URL结合时,这会为您提供绝对URL。 第二个, $(this).attr("href")将元素包装在一个jQuery对象中,然后访问该对象的href属性。 没有对返回的值进行处理,所以它只是给你HTML中的确切字符串。 The first version, this.href is reading the attribute directly from the javascr ...无法使用.attr()设置href(Can't set href with .attr())[2023-06-01]
问题是因为; 字符串中的字符,在使用encodeURI时未编码,而是需要关闭查询字符串并直接调用encodeURIComponent() 。 注意:要使此代码段生效,您需要在新标签页中打开“推文”链接,因为Twitter无法在iframe中显示。 var text = 'If it is not right do not do it; if it is not true do not say it." – Marcus Aurelius"' var x = encodeURIComponent(text) ...尝试以这种方式更改您的JavaScript $('.scrollto').click(function(e){ e.preventDefault(); var aid = $(this).attr('href').replace('#',''); alert( $(this).attr('href') ); var aTag = $('body').find('.section[name="'+aid+'"]').first(); var offset = aTag.of ...将URL路径与 attr('href')匹配以动态更新.active类(Matching the URL path with attr('href') to dynamically update .active class)[2023-07-25]
尝试这个: var _urlpath = window.location.pathname.split('/').pop(); // or: $(location).attr('pathname').split('/').pop(); Try this: var _urlpath = window.location.pathname.split('/').pop(); // or: $(location).attr('pathname').split('/').pop();相关文章
更多- Hadoop 2.0.1 HA配置部署
- Hadoop2搭建Federation+HA
- 在archlinux上搭建twitter storm cluster
- Hadoop Namenode HA方案比较
- Hadoop 解除 NameNode is in safe mode
- Hadoop 解除 “Name node is in safe mode”
- Federation+HA集群运维
- storm操作zookeeper源码分析-cluster.clj
- cdh4b1之HDFS的HA(High Availability)原理简介
- getting start with storm 翻译 第二章 part-1
最新问答
更多- h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
- 创建一个功能(Create a function)
- 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
- PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
- Qt冻结循环的原因?(Qt freezing cause of the loop?)
- TableView重复youtube-api结果(TableView Repeating youtube-api result)
- 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
- SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
- 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
- 以编程方式创建UITableView(Creating a UITableView Programmatically)
- 如何打破按钮上的生命周期循环(How to break do-while loop on button)
- C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
- 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
- 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
- Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
- 设置kotlin扩展名(Setting a kotlin extension)
- 如何并排放置两个元件?(How to position two elements side by side?)
- 如何在vim中启用python3?(How to enable python3 in vim?)
- 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
- 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
- Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
- dedecms如何安装?
- 在哪儿学计算机最好?
- 学php哪个的书 最好,本人菜鸟
- 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
- 如何覆盖错误堆栈getter(How to override Error stack getter)
- 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
- USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
- 电脑高中毕业学习去哪里培训
- 正则表达式验证SMTP响应(Regex to validate SMTP Responses)