Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-23 Thread arenee
I had the problem of an older Xerces (2.9.1) bundle installed in Karaf. I
stopped that Xerces bundle and all still *appeared* to work in Karaf. I
figured there were no specific dependencies on that version (This may come
back to bite me in the butt in the future). Despite stopping this bundle, I
still encountered the
org.apache.xerces.parsers.XIncludeAwareParserConfiguration error.

I then removed the Xerces dependency within the Hadoop-Karaf 3.0.0-SNAPSHOT
bundle. ( I also had to export org.apache.hadoop.fs and
org.apache.hadoop.conf in order for the bundle dependent on Hadoop-Karaf
3.0.0-SNAPSHOT to work) 

I then installed the new Hadoop-Karaf Arenee version along with a separate
Xerces 2.11.0 bundle. I no longer get the Xerces error. I do get a
connection refused error but that's a different issue. 

Thanks to all for your help!








--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033261.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread arenee
Hi all, 

I've installed the Hadoop 3.0.0 SNAPSHOT from the blog. When trying to
access an HDFS directly in Karaf, I receive the following error:

karaf@rootla|grep -i hadoop
[ 471] [Active ] [Created ] [   ] [   80] Apache Hadoop Karaf
(3.0.0.SNAPSHOT)
karaf@roothadoop:fs -ls /
Error executing command:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration


Any suggestions for fixing this error? 

Arenee



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread Jean-Baptiste Onofré

Hi,

remove the xercesImpl.jar from lib/endorsed, it should help.

Regards
JB

On 05/22/2014 07:50 PM, arenee wrote:

Hi all,

I've installed the Hadoop 3.0.0 SNAPSHOT from the blog. When trying to
access an HDFS directly in Karaf, I receive the following error:

karaf@rootla|grep -i hadoop
[ 471] [Active ] [Created ] [   ] [   80] Apache Hadoop Karaf
(3.0.0.SNAPSHOT)
karaf@roothadoop:fs -ls /
Error executing command:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration


Any suggestions for fixing this error?

Arenee



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread arenee
Thanks for the quick response. However, I don't seem to have the
xercesImpl.jar in my $KARAF_HOME/lib/endorsed directory. 

I did a search for xercesImpl*.jar and only found it associated with the
Hadoop-karaf bundle in
$KARAF_HOME/data/cache/bundle471/version0.1/bundle.jar-embedded/xercesImpl-2.11.0.jar

Any other suggestions? 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033247.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread Jean-Baptiste Onofré

What's your Karaf version ?

Regards
JB

On 05/22/2014 08:09 PM, arenee wrote:

Thanks for the quick response. However, I don't seem to have the
xercesImpl.jar in my $KARAF_HOME/lib/endorsed directory.

I did a search for xercesImpl*.jar and only found it associated with the
Hadoop-karaf bundle in
$KARAF_HOME/data/cache/bundle471/version0.1/bundle.jar-embedded/xercesImpl-2.11.0.jar

Any other suggestions?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033247.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread Jean-Baptiste Onofré
By the way, I should probably update my bundle for Karaf 3.0.0 (if it's 
the version that you use) ;)


Regards
JB

On 05/22/2014 08:09 PM, arenee wrote:

Thanks for the quick response. However, I don't seem to have the
xercesImpl.jar in my $KARAF_HOME/lib/endorsed directory.

I did a search for xercesImpl*.jar and only found it associated with the
Hadoop-karaf bundle in
$KARAF_HOME/data/cache/bundle471/version0.1/bundle.jar-embedded/xercesImpl-2.11.0.jar

Any other suggestions?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033247.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread arenee
Using Karaf 2.3.1



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033250.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: Error Executing Command - Hadoop Bundle in Karaf

2014-05-22 Thread Freeman Fang
Hi,

That's the problem. You shouldn't embed xercesImpl-2.11.0.jar in Hadoop-karaf 
bundle, you should use the one from container(with correct Import-Package).

The error 
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration

generally means same class loaded by different classloaders. embed jar usually 
is the culprit here.
-
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-5-23, at 上午2:09, arenee wrote:

 Thanks for the quick response. However, I don't seem to have the
 xercesImpl.jar in my $KARAF_HOME/lib/endorsed directory. 
 
 I did a search for xercesImpl*.jar and only found it associated with the
 Hadoop-karaf bundle in
 $KARAF_HOME/data/cache/bundle471/version0.1/bundle.jar-embedded/xercesImpl-2.11.0.jar
 
 Any other suggestions? 
 
 
 
 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/Error-Executing-Command-Hadoop-Bundle-in-Karaf-tp4033244p4033247.html
 Sent from the Karaf - Dev mailing list archive at Nabble.com.