Support Questions

Find answers, ask questions, and share your expertise

Writing custom Stellar function

New Contributor

I am trying to create a custom function in Stellar by following this guide. However, when I get following error when I call the function:

[Stellar]>>> ?NOW [!] No docs available for function 'NOW' java.lang.IllegalArgumentException: No docs available for function 'NOW'         at org.apache.metron.stellar.common.shell.StellarResult.error(StellarResult.java:115)         at org.apache.metron.stellar.common.shell.specials.DocCommand.execute(DocCommand.java:71)         at org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.execute(DefaultStellarShellExecutor.java:252)         at org.apache.metron.stellar.common.shell.cli.StellarShell.execute(StellarShell.java:359)         at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)         at java.lang.Thread.run(Thread.java:745)

From the error messeage, it seems like it can't find the jar file I just created. I made sure that jar exists (in hdfs /apps/metron/stellar), the global.json ($METRON_HOME/config/zookeeper/global.json) is updated to point to this jar file and the finally the the config is pushed to zookeeper with $METRON_HOME/bin/zk_load_configs.sh. What could I be missing here? Please help.

Thanks.

5 REPLIES 5

Hey @Jay Bhavsar, did you manage to address this issue? I believe I'm having the same issue.

Hey @Otto Fowler Can you please help here ?. I ping you directly because you pushed the sample code 🙂 (https://github.com/apache/metron/blob/master/metron-stellar/stellar-3rd-party-example/src/main/java/... )


Thanks in advance 🙂

Contributor

Hi @Michael Hidalgo , actually, I pushed the last commit to that file ( cleaning up errors in builds ). Casey Stella is actually the person who is the SME with that code, he wrote the doc.

I would suggest sending an email to the dev@metron.apache.org list. You can subscribe by sending a mail to dev-subscribe@metron.apache.org. More people will see the question there.


I assume you are running the stellar shell on a cluster machine, and logged in as an account that has rights to that HDFS location right? check that, but let's move that to the mailing list.


Hey @Otto Fowler, thanks for getting back. Sure, I will send the question to that group, it could just be a newbie thing, but I was not able to find a log that could point to the right direction, but surely I will send the question.


Thanks.

New Contributor

I'm having similar issues. Were you able to proceed the right way ?