Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Rokku Proxy #74

Closed
tusharkarkera opened this issue May 22, 2019 · 1 comment
Closed

Unable to start Rokku Proxy #74

tusharkarkera opened this issue May 22, 2019 · 1 comment

Comments

@tusharkarkera
Copy link

tusharkarkera commented May 22, 2019

I'm doing a POC to see how Rokku Proxy works. I've installed Docker, aws cli and sbt, and the containers are running before I try to start the proxy:

Name                        Command               State                         Ports
kafka                     start-kafka.sh                   Up      0.0.0.0:9092->9092/tcp
rokku_atlas_1             sh -c /entrypoint.sh             Up      0.0.0.0:21000->21000/tcp
rokku_ceph_1              /entrypoint.sh demo              Up      0.0.0.0:5000->5000/tcp, 0.0.0.0:8010->8010/tcp
rokku_keycloak_1          /opt/jboss/docker-entrypoi ...   Up      0.0.0.0:8080->8080/tcp
rokku_mariadb_1           docker-entrypoint.sh mysqld      Up      0.0.0.0:3307->3306/tcp
rokku_postgres-server_1   docker-entrypoint.sh postgres    Up      5432/tcp
rokku_ranger-admin_1      sh -c /tmp/entrypoint.sh         Up      0.0.0.0:6080->6080/tcp
rokku_rokku-sts_1         /opt/docker/bin/rokku-sts        Up      0.0.0.0:12345->12345/tcp
rokku_zookeeper_1         /bin/sh -c /usr/sbin/sshd  ...   Up      0.0.0.0:2181->2181/tcp, 22/tcp, 2888/tcp, 3888/tcp

Environment

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Also, I have created the /etc/rokku/ranger-s3-security.xml file from the sample file provided without any modifications since I'm running the project with the provided containers.
Below is the error seen while running sbt run:

[info] {"timestamp":"2019-05-22T17:48:26.586Z","level":"INFO","thread":"main","logger":"com.ing.wbaa.rokku.proxy.Server$$anon$1","message":"kerberos credentials are not provided","context":"default","application_name":"rokku-proxy"}
[info] {"timestamp":"2019-05-22T17:48:26.733Z","level":"ERROR","thread":"main","logger":"org.apache.ranger.authorization.hadoop.config.RangerConfiguration","message":"addResourceIfReadable(ranger-s3-audit.xml): couldn't find resource file location","context":"default","application_name":"rokku-proxy"}
[info] {"timestamp":"2019-05-22T17:48:26.735Z","level":"ERROR","thread":"main","logger":"org.apache.ranger.authorization.hadoop.config.RangerConfiguration","message":"addResourceIfReadable(ranger-s3-security.xml): couldn't find resource file location","context":"default","application_name":"rokku-proxy"}
[error] Exception in thread "main" com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger$RangerException: Ranger serviceType or appId not found (serviceType=s3, appId=testservice)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.liftedTree1$1(AuthorizationProviderRanger.scala:37)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.com$ing$wbaa$rokku$proxy$provider$AuthorizationProviderRanger$$rangerPlugin(AuthorizationProviderRanger.scala:27)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.com$ing$wbaa$rokku$proxy$provider$AuthorizationProviderRanger$$rangerPlugin$(AuthorizationProviderRanger.scala:26)
[error] 	at com.ing.wbaa.rokku.proxy.Server$$anon$1.com$ing$wbaa$rokku$proxy$provider$AuthorizationProviderRanger$$rangerPlugin$lzycompute(Server.scala:24)
[error] 	at com.ing.wbaa.rokku.proxy.Server$$anon$1.com$ing$wbaa$rokku$proxy$provider$AuthorizationProviderRanger$$rangerPlugin(Server.scala:24)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.rangerPluginForceInit(AuthorizationProviderRanger.scala:48)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.rangerPluginForceInit$(AuthorizationProviderRanger.scala:48)
[error] 	at com.ing.wbaa.rokku.proxy.Server$$anon$1.rangerPluginForceInit(Server.scala:24)
[error] 	at com.ing.wbaa.rokku.proxy.Server$$anon$1.<init>(Server.scala:39)
[error] 	at com.ing.wbaa.rokku.proxy.Server$.delayedEndpoint$com$ing$wbaa$rokku$proxy$Server$1(Server.scala:24)
[error] 	at com.ing.wbaa.rokku.proxy.Server$delayedInit$body.apply(Server.scala:22)
[error] 	at scala.Function0.apply$mcV$sp(Function0.scala:39)
[error] 	at scala.Function0.apply$mcV$sp$(Function0.scala:39)
[error] 	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
[error] 	at scala.App.$anonfun$main$1$adapted(App.scala:80)
[error] 	at scala.collection.immutable.List.foreach(List.scala:392)
[error] 	at scala.App.main(App.scala:80)
[error] 	at scala.App.main$(App.scala:78)
[error] 	at com.ing.wbaa.rokku.proxy.Server$.main(Server.scala:22)
[error] 	at com.ing.wbaa.rokku.proxy.Server.main(Server.scala)
[error] Caused by: java.lang.NullPointerException
[error] 	at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
[error] 	at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
[error] 	at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:216)
[error] 	at com.ing.wbaa.rokku.proxy.provider.AuthorizationProviderRanger.liftedTree1$1(AuthorizationProviderRanger.scala:29)
[error] 	... 19 more

Can someone point out what's missing here?

@arempter
Copy link
Contributor

Hey,
This error means that ranger-s3-security.xml is not found on class path. The path you provided /etc/rokku is fine when you run rokku as container.

In your case copy this file to src/main/resources and this should fix error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants