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

How to load extensions? #43

Open
lmurawsk opened this issue Dec 4, 2017 · 1 comment
Open

How to load extensions? #43

lmurawsk opened this issue Dec 4, 2017 · 1 comment

Comments

@lmurawsk
Copy link

lmurawsk commented Dec 4, 2017

Hi,

i'm trying to load extensions by placing their names in -Ddruid.extensions.loadList of [program:druid-coordinator] section in supervisord.conf. An excerpt from my supervisord.conf file is the following:

[...]

[program:druid-coordinator]
user=druid
command=java
  -server
  -Xmx1g
  -Duser.timezone=UTC
  -Dfile.encoding=UTF-8
  -Ddruid.host=%(ENV_HOSTIP)s
  -Ddruid.extensions.loadList=[\"mysql-metadata-storage\", \"druid-avro-extensions\"]
  -Ddruid.extensions.directory=/usr/local/druid/extensions
  -Ddruid.extensions.hadoopDependenciesDir=/usr/local/druid/hadoop-dependencies
  -Ddruid.metadata.storage.type=mysql
  -Ddruid.metadata.storage.connector.connectURI=jdbc:mysql://localhost:3306/druid
  -Ddruid.metadata.storage.connector.user=druid
  -Ddruid.metadata.storage.connector.password=diurd
  -Ddruid.coordinator.asOverlord.enabled=true
  -Ddruid.coordinator.asOverlord.overlordService=druid/overlord
  -Ddruid.indexer.fork.property.druid.processing.numThreads=1
  -Ddruid.indexer.storage.type=metadata
  -Ddruid.indexer.queue.startDelay=PT0M
  -Ddruid.indexer.runner.javaOpts="-server -Xmx1g -XX:MaxDirectMemorySize=2147483648"
  -Ddruid.processing.buffer.sizeBytes=536870912
  -Ddruid.coordinator.startDelay=PT5S
  -cp /usr/local/druid/lib/*
  io.druid.cli.Main server coordinator
redirect_stderr=true
priority=100

[...]

Unfortunately, i keep getting the following error in druid-coordinator-stdout---supervisor.log:
Error: Could not find or load main class "druid-avro-extensions"

Folder druid-avro-extensions with .jars (f.eg. druid-avro-extensions-0.10.1.jar) exists in /usr/local/druid/extensions with druid:druid owner.

Unfortunately i can't load any other extension due to the similar error so i must be missing something.

The question is - how to successfully load an extension? Any advice highly appreciated.

DRUID_VERSION 0.10.1.

Regards,
Łukasz

@visaxin
Copy link

visaxin commented Oct 30, 2018

plus

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