SCALA code to read the table present in HIVE and load it mongodb as a collection.
Load as it is, no need to change the field names or structure. The way it looks in HIVE, it should look same in collection.
1) HIVE table contains some fields with DECIMAL type. Can cast them to string.
2)Value for some fields in HIVE table is completely NULL TYPE.
3)some fields in HIVE table are of ARRAY of STRUCT type
Here am attaching HIVE table ddl and sample data to create table
6 freelancer đang chào giá trung bình $203 cho công việc này
Hi, I have more that 4+years of experience in hadoop and data mining technologies like HDFS, MapReduce, python, pypark, Scala, Hive etc. Please review my profile for skills. contact me for more details