zoukankan      html  css  js  c++  java
  • Hive中将文件加载到数据库表失败解决办法

    Hive中将文件加载到数据库表失败解决办法(hive创建表失败)

    遇到的问题:

    FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: java.net.ConnectException Call From dblab-VirtualBox/127.0.1.1 to localhost:9000 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused)

    解决办法:

    登录所安装的数据库(我用的是mysql)

    1、删除hive,  

    drop database hive; 

    2、重新创建hive, 

    create database hive;

    3、将字符集UTF-8修改为 latin1, 

    alter database hive character set latin1;

  • 相关阅读:
    Java之IO(一)InputStream和OutputStream
    bitset库
    assert
    C++ 与 Python 混合编程
    C++多线程
    C++11新特性
    C++性能优化指南
    C++随机数
    C++中struct与class的区别
    C++杂记
  • 原文地址:https://www.cnblogs.com/liulala2017/p/11459362.html
Copyright © 2011-2022 走看看