hdfs and database are two entities, and here's how you can transfer data between each other:
create table <tablename> (id string, name string) row format delimited fields terminated by ',' lines terminated BY '\n' stored as textfile
IMPORTANT: your table name show be all lowercases
hdfs dfs -copyFromLocal <path_of_your_table_on_hdfs> /encrypted/warehouse/<database_name>.db/<tablename>
invalidate metadata <tablename> compute stats <tablename>
hadoop fs -cat /encrypted/warehouse/<database_name>.db/<tablename>/* | tr '\001' '\t' > <path_of_file_on_hdfs>
There was an error while loading. Please reload this page.