You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/11/07 06:02:02 UTC

[GitHub] [pinot] abinassahoo opened a new issue, #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null

abinassahoo opened a new issue, #9745:
URL: https://github.com/apache/pinot/issues/9745

   Hi Team, while starting controller for my pinot cluster, i am getting below error, any suggestion is highly appreciated.
   
   pinot version: 0.10.0
   
   =============
   command to start controller:
   **bin/pinot-admin.sh StartController -configFileName conf/pinot-controller.conf**
   
   error:
   =======
   Executing command: StartController -configFileName conf/pinot-controller.conf
   Caught exception while starting controller, exiting.
   java.lang.NullPointerException: null
   	at org.apache.pinot.controller.ControllerConf.getZkStr(ControllerConf.java:426) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.utils.PinotConfigUtils.validateControllerConfig(PinotConfigUtils.java:127) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.utils.PinotConfigUtils.readControllerConfigFromFile(PinotConfigUtils.java:106) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.utils.PinotConfigUtils.generateControllerConf(PinotConfigUtils.java:83) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.admin.command.StartControllerCommand.getControllerConf(StartControllerCommand.java:202) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.admin.command.StartControllerCommand.execute(StartControllerCommand.java:183) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.Command.call(Command.java:33) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.Command.call(Command.java:29) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine.executeUserObject(CommandLine.java:1953) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine.access$1300(CommandLine.java:145) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at picocli.CommandLine.execute(CommandLine.java:2078) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:161) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   	at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:192) [pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
   
   
   pinot-controller.conf
   ==============
   
   pinot.service.role=CONTROLLER
   
   pinot.cluster.name=pinot-poc
   
   pinot.zk.server=xxxx:2181
   
   pinot.set.instance.id.to.hostname=true
   
   controller.port=9000
   
   controller.vip.host=xxxxx
   
   controller.data.dir=s3://pinot-events/controller-data
   controller.local.temp.dir=/tmp/pinot-tmp-data
   
   pinot.controller.segment.fetcher.protocols=file,http,s3
   pinot.controller.segment.fetcher.s3.class=org.apache.pinot.common.utils.fetcher.PinotFSSegmentFetcher
   pinot.controller.storage.factory.class.s3=org.apache.pinot.plugin.filesystem.S3PinotFS
   pinot.controller.storage.factory.s3.accessKey=xxxx
   pinot.controller.storage.factory.s3.secretKey=xxxx
   pinot.controller.storage.factory.s3.endpoint=http://xxxx:9000
   
   controller.access.protocols.http.port=9001


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] abinassahoo commented on issue #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null

Posted by GitBox <gi...@apache.org>.
abinassahoo commented on issue #9745:
URL: https://github.com/apache/pinot/issues/9745#issuecomment-1306646752

   @Jackie-Jiang, Thank you for the response. Could you please share the slack URL.
   
   However, i have checked the ZK address and it's correct. Controller gets started if i am passing all parameters in command line , but failed if i pass the same in controller config file.
   
   Working: **bin/pinot-admin.sh StartController -zkAddress localhost:2181 -clusterName pinot-poc -controllerPort 9001**
   Failed with NPE: **bin/pinot-admin.sh StartController -configFileName conf/controller.conf**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #9745:
URL: https://github.com/apache/pinot/issues/9745#issuecomment-1306280094

   The NPE is confusing. The actual issue is that the ZK address is not properly read. Can you please double check if `pinot.zk.server` is properly configured?
   
   FYI, this would be a good question in the Pinot Slack under troubleshooting channel


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang closed issue #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang closed issue #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null
URL: https://github.com/apache/pinot/issues/9745


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] xiangfu0 commented on issue #9745: Caught exception while starting controller, exiting. java.lang.NullPointerException: null

Posted by GitBox <gi...@apache.org>.
xiangfu0 commented on issue #9745:
URL: https://github.com/apache/pinot/issues/9745#issuecomment-1307465248

   This is fixed in https://github.com/apache/pinot/pull/9739


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org