We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1878c70 commit b1d404eCopy full SHA for b1d404e
python/pyspark/sql/context.py
@@ -15,6 +15,7 @@
15
# limitations under the License.
16
#
17
18
+from __future__ import print_function
19
import sys
20
import warnings
21
import json
@@ -686,10 +687,10 @@ def _ssql_ctx(self):
686
687
self._scala_HiveContext = self._get_hive_ctx()
688
return self._scala_HiveContext
689
except Py4JError as e:
- warnings.warn("You must build Spark with Hive. "
690
+ print("You must build Spark with Hive. "
691
"Export 'SPARK_HIVE=true' and run "
- "build/sbt assembly")
692
- raise e
+ "build/sbt assembly", file=sys.stderr)
693
+ raise
694
695
def _get_hive_ctx(self):
696
return self._jvm.HiveContext(self._jsc.sc())
0 commit comments