I am able to import data from sql server to hive using sqoop in command prompt as below:
>sqoop import --connect jdbc:sqlserver://localhost --username pavan -P --table my_Practice --hive-table my_Table --create-hive-table --hive-import -m 1
But i need to do the same using Java. Can anyone suggest me how to import the data using sqoop in Java??