我们需要将表列数据类型从字符串更改为日期.虽然我试图做到以下错误.能否请你帮忙.
hive>描述sales_staging;
好
cust_id string prod_num string
qty int sale_date stringsale_id string花时间:0.151秒,摘录:5排
hive> alter table sales_staging CHANGE sale_date sale_date DATE;
FAILED:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1.无法更改表格.以下列的类型与各自位置的现有列不兼容:sale_date
蜂巢>
错误:
2016年2月19日00:00:16.731严重[localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException:创建名称为'personService'的bean时出错:注入自动装配依赖项失败;嵌套的异常是org.springframework.beans.factory.BeanCreationException:无法自动连线字段:私有org.springframework.data.mongodb.core.MongoTemplate com.test.app.service.PersonService.mongoTemplate; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:创建在ServletContext资源[/WEB-INF/mvc-dispatcher-servlet.xml]中定义的名称为'mongoTemplate'的bean时出错。嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化bean类[org。[springframework.data.mongodb.core.MongoTemplate]:构造函数抛出异常;嵌套异常是java.lang.NoSuchMethodError:org.springframework.core.convert.support.ConversionServiceFactory.createDefaultConversionService()Lorg / springframework / core / convert / support / GenericConversionService;
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.2.xsd">
<context:component-scan base-package="com.test.app" />
<mvc:annotation-driven/>
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<!-- Factory bean that creates the Mongo instance -->
<bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
<property name="host" value="localhost" />
</bean>
<!-- MongoTemplate for connecting and querying the documents in the database -->
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg …Run Code Online (Sandbox Code Playgroud)