def connectDatabase(self):
     class_db_connect = createDatabaseTable()
     self.conn = class_db_connect.connectMysql()
     self.cursor = self.conn.cursor()
     self.sc = SparkContext("local", "test")
 def connectDatabase(self):
     class_db_connect = createDatabaseTable()
     self.conn = class_db_connect.connectMysql()
     self.cursor = self.conn.cursor()