http://apache-kylin.74782.x6.nabble.com/Problem-running-rest-server-td9077.html

2017-11-30 20:10 GMT+08:00 hongbin <[email protected]>:

> mac 10.13
> homebrew install hbase 1.2.6 hadoop 2.8.2 hive 2.3.1 zk 3.4.10
>
>
> hongbin@MBP ~/w/apache-kylin-2.2.0> find /usr/local/Cellar/ -name 'joda*'
> /usr/local/Cellar//flume/1.6.0/libexec/lib/joda-time-2.1.jar
> /usr/local/Cellar//apache-spark/2.1.0/libexec/jars/joda-time-2.9.3.jar
> /usr/local/Cellar//apache-spark/2.2.0/libexec/jars/joda-time-2.9.3.jar
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/plugins/
> pentaho-big-data-plugin/hadoop-configurations/emr310/
> lib/client/joda-time-2.3.jar
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/plugins/
> pentaho-big-data-plugin/hadoop-configurations/hdp23/lib/joda-time-2.5.jar
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/system/karaf/
> system/joda-time
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/system/karaf/
> system/joda-time/joda-time
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/system/karaf/
> system/joda-time/joda-time/2.2/joda-time-2.2.jar
> /usr/local/Cellar//kettle/6.1.0.1-196/libexec/lib/joda-time-1.6.jar
> /usr/local/Cellar//hadoop/2.8.2/libexec/share/hadoop/tools/
> lib/joda-time-2.9.4.jar
> /usr/local/Cellar//hive/2.3.1/libexec/lib/joda-time-2.8.1.jar
>
> kylin start failed
>
> 2017-11-30 15:37:43,595 INFO  [localhost-startStop-1] util.Version:27 :
> HV000001: Hibernate Validator 5.1.3.Final
> 2017-11-30 15:37:44,023 WARN  [localhost-startStop-1]
> support.XmlWebApplicationContext:551 : Exception encountered during
> context
> initialization - cancelling refresh attempt:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name
> 'org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter':
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter]:
> Constructor threw exception; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [com.fasterxml.jackson.datatype.joda.JodaModule]: Constructor threw
> exception; nested exception is java.lang.NoSuchMethodError:
> org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/
> DateTimeFormatter;
> 2017-11-30 15:37:44,025 ERROR [localhost-startStop-1]
> context.ContextLoader:350 : Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name
> 'org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter':
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter]:
> Constructor threw exception; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [com.fasterxml.jackson.datatype.joda.JodaModule]: Constructor threw
> exception; nested exception is java.lang.NoSuchMethodError:
> org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/
> DateTimeFormatter;
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:483)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.
> getObject(AbstractBeanFactory.java:306)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.
> getSingleton(DefaultSingletonBeanRegistry.java:230)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(
> AbstractBeanFactory.java:302)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> AbstractBeanFactory.java:197)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons(DefaultListableBeanFactory.java:761)
>         at
> org.springframework.context.support.AbstractApplicationContext.
> finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:543)
>         at
> org.springframework.web.context.ContextLoader.
> configureAndRefreshWebApplicationContext(ContextLoader.java:443)
>         at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(
> ContextLoader.java:325)
>         at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(
> ContextLoaderListener.java:107)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java:5110)
>         at
> org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5633)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:1015)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:991)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2020)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter]:
> Constructor threw exception; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> [com.fasterxml.jackson.datatype.joda.JodaModule]: Constructor threw
> exception; nested exception is java.lang.NoSuchMethodError:
> org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/
> DateTimeFormatter;
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
>         at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.
> instantiate(SimpleInstantiationStrategy.java:89)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
>         ... 26 more
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to
> instantiate [com.fasterxml.jackson.datatype.joda.JodaModule]: Constructor
> threw exception; nested exception is java.lang.NoSuchMethodError:
> org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/
> DateTimeFormatter;
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:102)
>         at
> org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.
> registerWellKnownModulesIfAvailable(Jackson2ObjectMapperBuilder.java:764)
>         at
> org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.
> configure(Jackson2ObjectMapperBuilder.java:607)
>         at
> org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(
> Jackson2ObjectMapperBuilder.java:590)
>         at
> org.springframework.http.converter.json.MappingJackson2HttpMessageConv
> erter.<init>(MappingJackson2HttpMessageConverter.java:57)
>         at
> org.springframework.http.converter.support.AllEncompassingFormHttpMessage
> Converter.<init>(AllEncompassingFormHttpMessageConverter.java:61)
>         at
> org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter.<init>(RequestMappingHandlerAdapter.java:182)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
>         ... 28 more
> Caused by: java.lang.NoSuchMethodError:
> org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/
> DateTimeFormatter;
>         at
> com.fasterxml.jackson.datatype.joda.ser.JodaDateSerializerBase.<clinit>(
> JodaDateSerializerBase.java:15)
>         at
> com.fasterxml.jackson.datatype.joda.JodaModule.<init>(JodaModule.java:39)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
>         ... 40 more
>
> --
> Sent from: http://apache-kylin.74782.x6.nabble.com/
>

Reply via email to