cant use metadata-init with postgresql

i see there is a metadata-init command used in the docker based integration tests.
i tried using it by setting medata.type=postgresql, but i get this error:

Feb 28, 2016 11:51:39 PM org.hibernate.validator.internal.util.Version

INFO: HV000001: Hibernate Validator 5.1.3.Final

2016-02-28T23:51:39,852 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentClassloader=true, coordinates=, defaultVersion=‘0.8.3’, localRepository='C:\Users\P

/.m2/repository’, remoteRepositories=[https://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]

2016-02-28T23:51:40,746 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.DruidMonitorSchedulerConfig] from props[druid.monitoring.] as [io.druid.server.metrics.DruidMonitorSchedulerConfig@76911385]

2016-02-28T23:51:40,754 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.MonitorsConfig] from props[druid.monitoring.] as [MonitorsConfig{monitors=}]

Exception in thread “main” com.google.inject.ProvisionException: Guice provision errors:

  1. Unknown provider[postgresql] of Key[type=io.druid.metadata.MetadataStorageConnector, annotation=[none]], known options[[derby]]

at io.druid.guice.PolyBind.createChoiceWithDefault(PolyBind.java:86)

while locating io.druid.metadata.MetadataStorageConnector

1 error

at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1014)

at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1040)

at io.druid.cli.CreateTables.run(CreateTables.java:108)

at io.druid.cli.Main.main(Main.java:99)

Hi Prashant, thanks for reporting this, can you file an issue?

Hi Prashant, what is the list of extensions you have enabled? Did you configure Druid to load the postgresql extension?

created issue here: