[错误报告]不能在Hive和Spark命令行工具中使用重音符号 [英] [BUG REPORT] cannot use accents in Hive and Spark command line tools
本文介绍了[错误报告]不能在Hive和Spark命令行工具中使用重音符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
上下文:HDInsight群集版本2.6.5.8-7
Context: HDInsight cluster version 2.6.5.8-7
如何复制:
-
在网关上的
- ssh上,用键盘输入一些带有重音符号的文本(例如é",à"或ô"),或复制粘贴此行. >
- 重音正确显示
- 打开直线会话(或spark-shell,spark-sql或/usr/bin/hive).
- 键入带有重音符号的文本
- 带有重音符号的字符将替换为??
- ssh on the gateway, type some text with your keyboard that contains some accents (such as "é", "à", or "ô"), or copy-paste this line.
- The accents are correctly displayed
- Open a beeline session (or a spark-shell, or spark-sql, or /usr/bin/hive).
- Type some text with accents
- The characters with accents are replaced with ??
我想这是一个配置问题,但是如果默认配置正确无误,那就太好了.
I guess it is a configuration problem, but it would be nice if the default configuration was correct on this.
有趣的是,pyspark shell没有这种问题,因此可能与Java有关.
Interestingly, the pyspark shell has no such problem, so it might be java-related.
有关信息,我在集群上的语言环境是:
For info, my locale on the cluster is :
$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
推荐答案
你好,
我尝试过使用beeline,但无法重现该问题.您能告诉我们更多有关您的环境的信息吗?
I tried with beeline but could not reproduce the issue. Can you tell us more about your environment?
这篇关于[错误报告]不能在Hive和Spark命令行工具中使用重音符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文