Spark 2.0 或更高版本中 inferschema 的替代方案是什么 [英] What is the alternate of inferschema in Spark 2.0 or above

查看:82
本文介绍了Spark 2.0 或更高版本中 inferschema 的替代方案是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spark 2.0 或更高版本中 inferschema 的替代方案是什么?我无法执行 sqlContext.inferschema

What is the alternate of inferschema in Spark 2.0 or above ? I am unable execute sqlContext.inferschema

推荐答案

来自 spark 文档,inferSchema 在 1.3 版中已弃用,请改用 createDataFrame().

from spark documentation , inferSchema is deprecated in version 1.3, use createDataFrame() instead.

这篇关于Spark 2.0 或更高版本中 inferschema 的替代方案是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆