Am new to Spark and Scala, I have some scenario like need to pass below file into Spark sql context, I don't know how to process this file into spark.
If any one help me it would be very helpful
{
"source": [
{
"id": "source1",
"type": "csv",
"path": "/home/siva/f1.txt",
"delimiter": ",",
"tableName": "table1",
"schema": "f1,f2,f3,f4,f5"
}
],
"pipe": [
{
"id": "pipe1",
"sql": "select f1,f2,f5 from table1"
}
],
"sinks": [
{
"id": "output1",
"type": "hdfs",
"path": "/home/siva/out",
"format": "json"
},
]
}
Please help me to proceed.
Thanks in Advance