在Apache Storm中重新平衡执行程序(Rebalancing executors in Apache Storm)
我试图在运行的Apache Storm(0.9.5)拓扑中重新平衡螺栓的执行程序数量。 当我执行命令到Nimbus节点时
./storm rebalance MyTopology -n 2 -e GreenBolt=4
它接受命令行输入,但是当我在Storm UI中查看时,执行器的数量没有改变。有没有我不知道的限制,例如重新平衡不能增加执行者的总数,只能将它们从一个螺栓移动到另一个螺栓?
I am trying to rebalance the number of executors for a bolt in a running Apache Storm (0.9.5) topology. When I execute the command to the Nimbus node
./storm rebalance MyTopology -n 2 -e GreenBolt=4
it accepts the command line input but the number of executors is not changed when I view in the Storm UI.Is there a limitation that I'm not aware of like a rebalance can not increase the total number of executors and only move them from one bolt to another?
原文:
最满意答案
我认为这将解决您的问题:
[œÀ-ÖØ-öø-ÿ]*$
i think this will solve your problem :
[œÀ-ÖØ-öø-ÿ]*$
相关问答
更多-
我建议没有正则表达式的解决方案。 正如你所说,你正在使用JS,所以函数在JavaScript中: function isItInvalid(str) { var last = str.length - 1; return (last < 2 || str[0] == ' ' || str[last] == ' ' || str.indexOf(',') != -1); } 编辑:只是让它更具可读性。 它还会检查字符串 ...
-
[0-9]*表示0或以上出现[0-9] [0-9]+表示出现1次或多次[0-9] ^[0-9]*.[0-9]*.[0-9]*.[0-9]*$ 将*更改为+ : ^[0-9]+.[0-9]+.[0-9]+.[0-9]+$ [0-9]* means 0 or more occurrence of [0-9] [0-9]+ means 1 or more occurrence of [0-9] ^[0-9]*.[0-9]*.[0-9]*.[0-9]*$ Change * to +: ^[0-9]+.[0-9 ...
-
你可以简单地做: /^[A-z]+$/ [Az]将匹配所有字母(小写和大写)。 ^和$将确保只有这些字母匹配。 更新: 我原来的正则表达式/^[Az]+$/将匹配A和z之间A字符,包括一些非字母答案,如下面的一些专家评论中所述。 最好使用/^[AZ]+$/i或/^[A-Za-z]+$/来匹配ASCII字母的输入字符串。 preg_match('/^[A-Z]+$/i', "abcAbc^Xyz", $m); echo "4. "; var_dump($m); OUTPUT 4. array(0) { } ...
-
范围U+00C0 - U+00DC应为U+00E0 - U+00FC的大写等效U+00FC 所以这个text.match(/[AZ\u00C0-\u00DC]+/); 应该是你在找什么。 像graphemica这样的网站可以帮助您自己确定所需的范围。 编辑像其他答案已经提到,这也符合一些其他迹象。 The range U+00C0 - U+00DC should be the uppercase equivalent for U+00E0 - U+00FC So this text.match(/[A-Z\ ...
-
您可以使用前瞻来检查前导零必须最多为2 (并且不应在同一步骤中包含所有零 ) ^(?!0{3})[0-9]{9}$ (?!0{3})丢弃以3个零开头的任何数字 [0-9]{9}匹配任何其他9位数字 You can use a lookahead to check leading zero's must be only up to 2 (and should not contain all Zeros in the same step) like ^(?!0{3})[0-9]{9}$ (?!0{3}) d ...
-
如果/[^\x00-\x7F]+/这样的模式适合您,它会匹配您现在想要避免匹配的所有字母。 由于[^...]是一个否定的字符类 ,因此排除 char / chars集合的最简单方法是将它们添加到类中: /[^\x00-\x7FâäèéêëîïôœùûüÿçÀÂÄÈÉÊËÎÏÔŒÙÛÜŸÇ]+/ 请参阅正则表达式演示 。 如果使用空字符串作为替换模式,则将删除非ASCII( \x00-\x7F )的每1个字符,并且不等于添加到否定字符类的字母。 If the pattern like /[^\x00-\x7 ...
-
JavaScript正则表达式(带_-的字母数字字符)(JavaScript regular expression ( alphanumeric characters with _-))[2022-04-19]
尝试这个: /^[0-9a-zA-Z-_]+$/ 如果在可以将其解释为_-等范围的位置输入短划线符号“ - ”,则表示ascii表中与_或以上匹配的任何字符。 Try this: /^[0-9a-zA-Z-_]+$/ If you enter the dash sign "-" at a position where it can be interpreted as a range such as _- it would mean any characters matching _ or above i ... -
jsp中的正则表达式(Regular expression in jsp)[2021-08-25]
[A-Za-z0-9._]*[A-Za-z]+[A-Za-z0-9._]* 将匹配任何字符串与字母数字或两个特殊字符,前提是它包含至少一个字母字符。 编辑:你似乎发现了很多要求...下面的模式将匹配以字母或_开头的字符串,以字母或数字结尾,仅包含字母,数字, . 和_ 。 ^[\\p{L}_](?[\\p{L}\\d._]*[\\p{L}\\d])?$ [A-Za-z0-9._]*[A-Za-z]+[A-Za-z0-9._]* Will match any string with alphanumeric ... -
我认为这将解决您的问题: [œÀ-ÖØ-öø-ÿ]*$ i think this will solve your problem : [œÀ-ÖØ-öø-ÿ]*$
-
使用否定字符类:[^ A-Za-z- \ w] 只有当用户输入的东西不是该字符类中的内容时,才会匹配。 if (preg_match('/[^A-Za-z-\w]/', $input)) { /* invalid charcter entered */ } Use a negated character class: [^A-Za-z-\w] This will only match if the user enters something OTHER than what is in that chara ...