Accessing a dataframe from another Singleton class (Python)

2018-08-12 Thread Aakash Basu
Hi, I wanted to read a dataframe in one singleton class and and use that in another singleton class. Below is my code - Class Singleton - class Singleton(object): _instances = {} def __new__(class_, *args, **kwargs): if class_ not in class_._instances: class_._instances[class_]

Re: executing stored procedure through spark

2018-08-12 Thread HARSH TAKKAR
Hi You can call the java program directly though pyspark, Following is the code that will help. sc._jvm.. Harsh Takkar On Sun, Aug 12, 2018 at 9:27 PM amit kumar singh wrote: > Hi /team, > > The way we call java program to executed stored procedure > is there any way we can achieve the same

executing stored procedure through spark

2018-08-12 Thread amit kumar singh
Hi /team, The way we call java program to executed stored procedure is there any way we can achieve the same using pyspark