Building Elasticsearch for Clear Linux, NullPointerException


I work in the Clear Linux ( development team and we are trying to include elasticsearch in one of our Big Data bundles for the OS. The build process appears go to well, but when I run elasticsearch for testing I get this error:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.elasticsearch.common.logging.DeprecationLogger.<clinit>(
        at org.elasticsearch.common.xcontent.json.JsonXContentParser.<init>(
        at org.elasticsearch.common.xcontent.json.JsonXContent.createParser(
        at org.elasticsearch.common.settings.Setting.parseableStringToList(
        at org.elasticsearch.common.settings.Setting.lambda$listSetting$27(
        at org.elasticsearch.common.settings.Setting.listSetting(
        at org.elasticsearch.common.settings.Setting.listSetting(
        at org.elasticsearch.env.Environment.<clinit>(
        at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(
        at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
        at org.elasticsearch.cli.Command.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
Caused by: java.lang.NullPointerException
        at org.elasticsearch.Build.<clinit>(
        ... 16 more

I realize there have been similar questions, with similar errors, however I believe my environment is different and previous answers may not apply in this case.

Can you give me a hand?

Last time I've seen such an error, it appears that manifest files were missing in the final artifact. Can you check that?

This is a server stacktrace, not a client stacktrace like you're using to seeing in this situation. That means this is a repackaged, externally packaged distribution, or embedded(?), not one of our officially blessed ones. We do not support this.

You mean inside elasticsearch-5.4.0.jar?

There is a META-INF/MANIFEST.MF file there. Should there be more manifest files?

Well, I am building elasticsearch from source to create a Clear Linux package. What is it that you don't support?

Why are you building elasticsearch from source instead of using the official distributions?

What is it that you don't support?

As @jasontedor said, repackaged, externally packaged distribution, or embedded. If you are building from source, that is an externally packaged distribution. We can't support something we have not built and tested ourselves.

1 Like

Clear Linux is optimized for Intel servers. The reason we build things ourselves is because we plan to optimize not only the OS but also the most requested applications, which may include elasticsearch.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.