Yetunde
09/14/2022, 8:43 AMYetunde
09/14/2022, 8:46 AMAshish Verma
09/14/2022, 9:05 AMmetadata = bootstrap_project(Path.cwd())
with KedroSession.create(metadata.package_name) as session:
session.run()
Yetunde
09/14/2022, 9:34 AMTynan
09/14/2022, 9:43 AMMerel
09/14/2022, 9:44 AMAshish Verma
09/14/2022, 9:53 AMAshish Verma
09/14/2022, 9:56 AMTynan
09/14/2022, 10:00 AMRogier Vlijm
09/15/2022, 7:58 AMRogier Vlijm
09/15/2022, 7:59 AMAntony Milne
09/15/2022, 9:11 AMKedroContext
? Does is instantiate spark or just use the in-built spark
object in databricks?Rogier Vlijm
09/15/2022, 9:12 AMAntony Milne
09/15/2022, 9:19 AMspark
instance:
def _get_databricks_object(name: str):
"""Gets object called `name` from the user namespace."""
return IPython.get_ipython().user_ns.get(name) # pragma: no cover
_get_databricks_object("spark")
Antony Milne
09/15/2022, 9:21 AMspark
object rather than calling getOrCreate
Rogier Vlijm
09/15/2022, 9:23 AMRogier Vlijm
09/15/2022, 9:24 AMRogier Vlijm
09/15/2022, 10:12 AMObject 'SparkDataSet' cannot be loaded from 'kedro.extras.datasets.spark'. Please see the documentation on how to install relevant dependencies for kedro.extras.datasets.spark.SparkDataSet
Rogier Vlijm
09/15/2022, 10:23 AMpip install kedro[spark.SparkDataSet]
:Rogier Vlijm
09/15/2022, 12:02 PMpip install hdfs
now)