Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.5.0
-
None
Description
When the path to sentry-site.xml contains spaces, impalad and catalogd start up failed.
The error information is as follows:
2016-08-26 12:22:45,454373 ERROR impala: java.lang.RuntimeException: Sentry configuration file does not exist: /home/mr/impala/conf/sentry-site.xml
at com.cloudera.impala.authorization.SentryConfig.loadConfig(SentryConfig.java:51)
at com.cloudera.impala.authorization.AuthorizationConfig.validateConfig(AuthorizationConfig.java:81)
at com.cloudera.impala.service.JniFrontend.<init>(JniFrontend.java:122)
2016-08-26 12:22:45,454373 ERROR impala: java.lang.RuntimeException: Sentry configuration file does not exist: /home/mr/impala/conf/sentry-site.xml
at com.cloudera.impala.authorization.SentryConfig.loadConfig(SentryConfig.java:51)
at com.cloudera.impala.authorization.AuthorizationConfig.validateConfig(AuthorizationConfig.java:81)
at com.cloudera.impala.service.JniFrontend.<init>(JniFrontend.java:122)
After checking the configuration of impalad and catalogd, found the reason is that the absolute path to the sentry-site.xml which set in sentry_config contains spaces.
The solution is to remove the spaces from the path to the sentry-site.xml when impalad and catalogd reading configuration in process of startup.