'Want to create SQL set(databse) on apache spark and access it on the second node cluster

My task is to create a distributed environment, then create SQL data on one server and access it on the second server using Apache SparkSQL.

I have created the environment but unable to do the task am stuck



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source