sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abraham Elmahrek <...@cloudera.com>
Subject Re: connect refused in sqoop2 commandline
Date Wed, 17 Jul 2013 14:48:11 GMT
It looks like your server never fully started. The client and server are
separate entities in sqoop2. The server has to start in order for the
client to communicate with it. I'll follow up on some of the other threads
you've started about the "Class invariant violation" error message.


On Wed, Jul 17, 2013 at 1:30 AM, ch huang <justlooks@gmail.com> wrote:

> in error log
>
> SEVERE: Error listenerStart
> Jul 17, 2013 4:10:03 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/sqoop] startup failed due to previous errors
> Jul 17, 2013 4:10:03 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesJdbc
> SEVERE: The web application [/sqoop] registered the JDBC driver
> [org.apache.derby.jdbc.AutoloadedDriver40] but failed to unregister it when
> the web application was stopped. To p
> revent a memory leak, the JDBC Driver has been forcibly unregistered.
> Jul 17, 2013 4:10:03 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/sqoop] appears to have started a thread
> named [sqoop-config-file-poller] but has failed to stop it. This is very
> likely to create a memory leak.
> Jul 17, 2013 4:10:03 PM org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> SEVERE: The web application [/sqoop] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7c92eb86]) and
> a value of type [org.apache.derb
> y.iapi.services.context.ContextManager] (value
> [org.apache.derby.iapi.services.context.ContextManager@7185ad79]) but
> failed to remove it when the web application was stopped. Th
> is is very likely to create a memory leak.
> Jul 17, 2013 4:10:03 PM org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> SEVERE: The web application [/sqoop] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7c92eb86]) and
> a value of type [org.apache.derby.iapi.services.context.ContextManager]
> (value [org.apache.derby.iapi.services.context.ContextManager@22e90943])
> but failed to remove it when the web application was stopped. This is very
> likely to create a memory leak.
> log4j: log4j called after unloading, see
> http://logging.apache.org/log4j/1.2/faq.html#unload.
> java.lang.IllegalStateException: Class invariant violation
>         at
> org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)
>         at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
>         at org.apache.log4j.Logger.getLogger(Logger.java:117)
>         at
> org.apache.sqoop.connector.jdbc.GenericJdbcImportInitializer.<clinit>(GenericJdbcImportInitializer.java:39)
>         at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>         at
> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
>         at
> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
>         at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
>         at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
>         at java.lang.reflect.Field.get(Field.java:358)
>         at
> org.apache.catalina.loader.WebappClassLoader.clearReferencesStaticFinal(WebappClassLoader.java:2066)
>
>
> On Wed, Jul 17, 2013 at 4:26 PM, ch huang <justlooks@gmail.com> wrote:
>
>> is this a bug? ,i can not run show command
>>
>> sqoop:000> show connector --all
>> Exception has occurred during processing command
>> Exception: com.sun.jersey.api.client.UniformInterfaceException Message:
>> GET http://localhost:12000/sqoop/v1/connector/all returned a response
>> status of 404 Not Found
>> sqoop:000> set server --host localhost --port 8050 --webapp sqoop
>> Server is set successfully
>> sqoop:000> show connector --all
>> Exception has occurred during processing command
>> Exception: com.sun.jersey.api.client.ClientHandlerException Message:
>> java.net.ConnectException: Connection refused
>> sqoop:000> show server --all
>> Server host: localhost
>> Server port: 8050
>> Server webapp: sqoop
>> sqoop:000> show connector --all
>> Exception has occurred during processing command
>> Exception: com.sun.jersey.api.client.ClientHandlerException Message:
>> java.net.ConnectException: Connection refused
>>
>
>

Mime
View raw message