launcher.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:spylon 作者: maxpoint 项目源码 文件源码
def sql_context(self, application_name):
        """Create a spark context given the parameters configured in this class.

        The caller is responsible for calling ``.close`` on the resulting spark context

        Parameters
        ----------
        application_name : string

        Returns
        -------
        sc : SparkContext
        """
        sc = self.spark_context(application_name)
        import pyspark
        sqlContext = pyspark.SQLContext(sc)
        return (sc, sqlContext)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号