-------- Forwarding messages --------
From: "lk_hadoop" <lk_had...@163.com>
Date: 2020-06-10 21:45:18
To: u...@atlas.apache.org
Subject: Re:Re:import-hive.sh error with 2.1.0-rc1
org.apache.commons.configuration.AbstractConfiguration.getList(String key,
List<?> defaultValue) can't map a boolean value to list
public List<Object> getList(String key, List<?> defaultValue)
{
Object value = getProperty(key);
List<Object> list;
if (value instanceof String)
{
list = new ArrayList<Object>(1);
list.add(interpolate((String) value));
}
else if (value instanceof List)
{
list = new ArrayList<Object>();
List<?> l = (List<?>) value;
// add the interpolated elements in the new list
for (Object elem : l)
{
list.add(interpolate(elem));
}
}
else if (value == null)
{
list = (List<Object>) defaultValue;
}
else if (value.getClass().isArray())
{
return Arrays.asList((Object[]) value);
}
else if (isScalarValue(value))
{
return Collections.singletonList((Object) value.toString());
}
else
{
throw new ConversionException('\'' + key + "' doesn't map to a List object: " +
value + ", a "
+ value.getClass().getName());
}
return list;
}
At 2020-06-10 18:59:22, "lk_hadoop" <lk_had...@163.com> wrote:
even if I change the vaue to false or comment out this line, I still got the
same error:
Caused by: org.apache.commons.configuration.ConversionException:
'atlas.graph.index.search.solr.wait-searcher' doesn't map to a List object:
true, a java.lang.Boolean
At 2020-06-10 18:27:41, "lk_hadoop" <lk_had...@163.com> wrote:
hi,all:
I try to import hive metadata ,I got error :
ERROR - [main:] ~ Import failed (HiveMetaStoreBridge:179)
org.apache.atlas.AtlasException: Failed to load application properties
at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:147)
at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:100)
at
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:123)
Caused by: org.apache.commons.configuration.ConversionException:
'atlas.graph.index.search.solr.wait-searcher' doesn't map to a List object:
true, a java.lang.Boolean
at
org.apache.commons.configuration.AbstractConfiguration.getList(AbstractConfiguration.java:1144)
at
org.apache.commons.configuration.AbstractConfiguration.getList(AbstractConfiguration.java:1109)
at
org.apache.commons.configuration.AbstractConfiguration.interpolatedConfiguration(AbstractConfiguration.java:1274)
at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:142)
... 2 more
my config is :
atlas.graph.index.search.solr.wait-searcher=true