在 apache zeppelin 中订购条形图值

Posted

技术标签:

【中文标题】在 apache zeppelin 中订购条形图值【英文标题】:order the bar chart values in apache zeppelin 【发布时间】:2017-01-14 05:21:01 【问题描述】:

我在 EMR 上使用 Zeppelin v0.5.6。我无法获得按我绘制的指标排序的条形图。作为一个虚拟示例,我希望条形图显示 col2 有序 -

sc.parallelize(Range(0,10).map(e=>(e,e*e))).toDF("col1","col2").registerTempTable("temptable")

%sql select * from temptable order by col2 asc

%sql select * from temptable order by col2 desc

对生成的图表没有影响。我错过了什么?

谢谢!

【问题讨论】:

【参考方案1】:

不确定您现在是否需要答案,但仍在为其他人发帖。 您的美元符号有问题尝试用键盘输入它并首先执行第一行并确保您没有点击表格。

%sql select * from temptable order by col2 asc

【讨论】:

"你的美元符号有问题,试着用键盘输入它,首先执行第一行,确保你没有点击表格。"我在使用 zeppelin 笔记本时遇到了同样的问题,当从某些网络资源复制和粘贴时,% 符号的编码方式有所不同。

以上是关于在 apache zeppelin 中订购条形图值的主要内容,如果未能解决你的问题,请参考以下文章

Apache Zeppelin - 如何在 Apache Zeppelin 中使用 Helium 框架

在 Apache Livy Interpreter for Zeppelin 中访问 zeppelin 上下文的问题

Apache Zeppelin - 断开连接状态

使用 Spark 配置 Apache Zeppelin

java.lang.ClassNotFoundException: org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 尝试在

Apache - Zeppelin 在 Ubuntu 上构建失败