You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
boolean parameters for pulsar-admin has 0 arity #388
so generated download command will be failed and complain below error when passing --tls-allow-insecure true|false or --tls-enable-hostname-verification true|false:
Was passed main parameter 'true' but no main parameter was defined in your arg class
Function-mesh: v0.1.10 shardId=0 Using function root classloader: sun.misc.Launcher$AppClassLoader@7d4991ad Using function instance classloader: java.net.URLClassLoader@4554617c Starting function instance... Exception in thread "main" java.lang.reflect.InvocationTargetException 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.pulsar.functions.instance.JavaInstanceMain.main(JavaInstanceMain.java:99) Caused by: com.beust.jcommander.ParameterException: Was passed main parameter '100' but no main parameter was defined in your arg class at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:954) at com.beust.jcommander.JCommander.parseValues(JCommander.java:755) at com.beust.jcommander.JCommander.parse(JCommander.java:356) at com.beust.jcommander.JCommander.parse(JCommander.java:335) at org.apache.pulsar.functions.runtime.JavaInstanceStarter.start(JavaInstanceStarter.java:149) ... 5 more Stream closed EOF for my-namespace/function-name-dev-g2cvedgeclientmessage-function-0 (pulsar-function)
Hello I am getting the same issue on an integer value, I beleive parameter is --max_buffered_tuples.
I appreciate the guidance, thanks in advance....
@jiangpengcheng thank you for the response...
By the way I also deployed the sample function that is referred in your documentation, that also is doing the same thing for boolean values.
so based on your error, I guess $brokerServiceURL is empty, and the program takes --max_buffered_tuples as an value for --pulsar_serviceurl, and treats 100 as a parameter
so based on your error, I guess $brokerServiceURL is empty, and the program takes --max_buffered_tuples as an value for --pulsar_serviceurl, and treats 100 as a parameter @jiangpengcheng thank for your response,
Activity
jiangpengcheng commentedon Jun 17, 2022
sub-issues:
armangurkan commentedon Jun 20, 2022
Function-mesh: v0.1.10
shardId=0 Using function root classloader: sun.misc.Launcher$AppClassLoader@7d4991ad Using function instance classloader: java.net.URLClassLoader@4554617c Starting function instance... Exception in thread "main" java.lang.reflect.InvocationTargetException 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.pulsar.functions.instance.JavaInstanceMain.main(JavaInstanceMain.java:99) Caused by: com.beust.jcommander.ParameterException: Was passed main parameter '100' but no main parameter was defined in your arg class at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:954) at com.beust.jcommander.JCommander.parseValues(JCommander.java:755) at com.beust.jcommander.JCommander.parse(JCommander.java:356) at com.beust.jcommander.JCommander.parse(JCommander.java:335) at org.apache.pulsar.functions.runtime.JavaInstanceStarter.start(JavaInstanceStarter.java:149) ... 5 more Stream closed EOF for my-namespace/function-name-dev-g2cvedgeclientmessage-function-0 (pulsar-function)Hello I am getting the same issue on an integer value, I beleive parameter is
--max_buffered_tuples.I appreciate the guidance, thanks in advance....
jiangpengcheng commentedon Jun 21, 2022
@armangurkan could you share your YAML? it looks like some environment is missing
armangurkan commentedon Jun 21, 2022
@jiangpengcheng thank you for the response...
By the way I also deployed the sample function that is referred in your documentation, that also is doing the same thing for boolean values.
jiangpengcheng commentedon Jun 21, 2022
@armangurkan you're welcome
the command argument is assembled as below(you can check the whole command by describing the generated pod)
so based on your error, I guess
$brokerServiceURLis empty, and the program takes--max_buffered_tuplesas an value for--pulsar_serviceurl, and treats100as a parameterarmangurkan commentedon Jun 21, 2022
The configmap and the image that has the part of the command argument is above, actually the brokerServiceUrl is defined.
jiangpengcheng commentedon Jun 22, 2022
then I have no idea now, could you try with the latest function-mesh? maybe there are some bugs in v0.1.10
freeznet commentedon Jun 22, 2022
@armangurkan would you mind sharing the export YAML of the POD? thanks.
freeznet commentedon Aug 17, 2022
already resolved by #414