hive整合springcloud框架

hive插入表数据非常慢

1.maven解决 日志冲突和Tomcat冲突


    org.apache.hive
    hive-jdbc
    2.3.2
    
        
            org.mortbay.jetty
            *
        
        
            javax.servlet
            *
        
        
            org.eclipse.jetty.orbit
            *
        
        
            org.eclipse.jetty.aggregate
            *
        
        
            org.slf4j
            *
        
        
            org.apache.logging.log4j
            *
        
        
            log4j
            log4j
        
        
            org.apache.hive
            hive-shims
        
    


    org.springframework.data
    spring-data-hadoop
    2.5.0.RELEASE
    
        
            javax.servlet
            servlet-api
        
    

 

2.插入语句出现异常:

Permission denied: user=anonymous, access=WRITE, inode="/":root:supergroup:drwxr-xr-x

hadoop dfsadmin -safemode leave 关闭安全模式

hdfs dfs -chmod 777 / 

重启hadoop和hive

 

 

你可能感兴趣的:(java)