Académique Documents
Professionnel Documents
Culture Documents
Input:
Load:
Querying table:
Load:
Querying table:
6+6 = 12 records
Note: when we try to load the table again using the same input file, hive will only
rename the file accordingly in the default warehouse path.
Querying table
(12 6 = 6 records)
Input:
Load :
Note : when we load the data in HDFS mode, internally it is move from input
HDFS path to local hive warehouse path (which is also HDFS). So the file in
source path will be removed
Querying table:
Input:
Place the file into the same HDFS input path once again:
Load :
Note: when we execute the move command from source HDFS location to target
HDFS location, and the same file name is already existing in target HDFS location,
we will get an error
Also, the file name in input HDFS path will be renamed as a result of the above load
and the user has an option to load the renamed file
Querying table:
Querying table:
Input:
Load:
Querying:
Load
Querying
Load:
Querying table:
Load:
Move will fail in this case (Input HDFS to Output HDFS, and output HDFS already
having the file) and
as the result of the move operation, the file name in Input HDFS path will be
renamed
DROPPING tables:
Creation