---
title: "hive 导入配置数据表(内部表)"
author: "hbjava1985"
date: "2015-02-06T11:00:56Z"
tags: []
categories: ["开源软件"]
slug: "hive"
draft: false
lastmod: "2015-02-06T11:00:56Z"
id: 2183990
url: "https://hbjava1985.iteye.com/blog/2183990"
---

```sql

hive> create table alter_tmp(id INT, name STRING，dt STRING)
    > row format delimited fields terminated by ',';
OK
Time taken: 2.078 seconds
hive> load data local inpath '/home/work/data/alter_test.txt' into table alter_tmp;
Copying data from file:/home/work/data/alter_test.txt
Copying file: file:/home/work/data/alter_test.txt
Loading data to table default.alter_tmp
OK
Time taken: 2.71 seconds

```