Hi,
Trying to give Unicode value (\u001c) as a delimiter in Hive/Beeline output file, but not able to write the data with the special character value as a delimiter into file.
In the output file, its taking the \ as a delimiter (i.e its considering the first character from '\u001c' as delimiter)
Below are the commands using.
What exactly the issue here? Is there any workaround to achieve this?
Command:
beeline -u "jdbc:hive2://master:10000/;principal=hive/master@DOMAIN.NET"
--silent=true --showHeader=false --outputformat=dsv --delimiterForDSV='\u001c' -e select * from emp; | hadoop fs -appendToFile - /<HDFS_Path>/data.dat
Note: If I give single character as delimiter (eg: ~) its working fine, but with multiple characters as delimiter...its not working as expected.