Closed pdeva closed 6 years ago
There's some Guice problems with resolving shardSpec types for the tool. One workaround is to remove the shardSpec and add it in manually after the conversion.
As noted in the bug report, I did remove the shardSpec and ran into further errors
@pdeva You'll have to include the kafka 8 extension for the tool to be able to resolve the type. I think we will need more tests around the tool. You can also read http://druid.io/docs/latest/ingestion/realtime-ingestion.html and manually convert the spec.
@pdeva did it work after adding kafka-8 extension to classpath? Also, for the shard spec issue can you try to replace https://github.com/druid-io/druid/blob/0.6.x/services/src/main/java/io/druid/cli/convert/ConvertIngestionSpec.java#L62 with
Injector injector = Initialization.makeInjectorWithModules(
GuiceInjectors.makeStartupInjector(),
ImmutableList.<Module>of(
new Module()
{
@Override
public void configure(Binder binder)
{
JsonConfigProvider.bindInstance(
binder, Key.get(DruidNode.class, Self.class), new DruidNode("dummy", null, null)
);
}
}
)
);
ObjectMapper jsonMapper = injector.getInstance(ObjectMapper.class);
and see if that fixes the issue?
how does one add kafka extension to classpath? there is no documentation for this. in druid 0.6 we add the kafka extension as a maven style dependency in runtime.properties file. since runtime.properties is not being used here, how do i add the extension?
Is this still an issue?
i dont think this was ever fixed
It wasn't fixed, but we did remove the tool at some point since everything involved here is deprecated now! So I will close the issue.
I am using convertSpec tool in 0.6.173 to upgrade my realtime node specfile for 0.7.
Here is what the file looks like
Command used to run tool:
I get this error:
So, I removed the array from the top and bottom of the .json file since there is only 1 element anyway. But now I run into this:
The line that is causing this issue is the
'type'
key here:So, I went ahead and removed the whole
shardSpec
element from my file. But now I run into this:It seems this tool is completely broken.