首页
\
问答
\
java.lang.ClassNotFoundException:org.apache.hadoop.hbase.mapreduce.TableOutputFormat(java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableOutputFormat)
java.lang.ClassNotFoundException:org.apache.hadoop.hbase.mapreduce.TableOutputFormat(java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableOutputFormat)
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableOutputFormat
我无法将
hbase jar
文件放到Hadoop
lib目录中,因为我不允许在给定的集群上更改此类configurations
。您还可以提供哪些其他选择?
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.mapreduce.TableOutputFormat
I cannot put the
hbase jar
files toHadoop
lib directory, because I am not allowed to change suchconfigurations
on the given cluster.What other alternatives can you offer?
原文:https://stackoverflow.com/questions/21850298
更新时间:2023-07-18 16:07
最满意答案
我目前正在使用此代码来解决我工作的网站上的问题:
onBeforeShow: function() { if($(this).parents("ul").length > 1){ var w = $(window).width(); var ul_offset = $(this).parents("ul").offset(); var ul_width = $(this).parents("ul").outerWidth(); // Shouldn't be necessary, but just doing the straight math // on dimensions can still allow the menu to float off screen // by a little bit. ul_width = ul_width + 50; if((ul_offset.left+ul_width > w-(ul_width/2)) && (ul_offset.left-ul_width > 0)) { $(this).addClass('too_narrow_fix'); } else { $(this).removeClass('too_narrow_fix'); } }; }
这是它适用的CSS:
.too_narrow_fix { left: -14.5em !important; top: .5em !important; }
I am currently using this code to solve the problem on a site I work on:
onBeforeShow: function() { if($(this).parents("ul").length > 1){ var w = $(window).width(); var ul_offset = $(this).parents("ul").offset(); var ul_width = $(this).parents("ul").outerWidth(); // Shouldn't be necessary, but just doing the straight math // on dimensions can still allow the menu to float off screen // by a little bit. ul_width = ul_width + 50; if((ul_offset.left+ul_width > w-(ul_width/2)) && (ul_offset.left-ul_width > 0)) { $(this).addClass('too_narrow_fix'); } else { $(this).removeClass('too_narrow_fix'); } }; }
Here's the CSS it applies:
.too_narrow_fix { left: -14.5em !important; top: .5em !important; }
相关问答
更多-
Superfish菜单有问题(Problem with Superfish menu)[2023-10-19]
配置文件设置有高度问题,因为您将其设置为33px高度,它跨越两行... 将.main-menu li更改为: .main-menu li { background:#ff6633; height:auto; } 和.main-menu li:悬停到: .main-menu li:hover { background:#ff6633; height:auto; } 要消除差距变化: .main-menu li:hover ul, .main-menu li. ... -
我没有在代码中提到jquery refenrence但它现在解决了,错误是它使用了不可思议的jquery refenece。 I have not mentioned jquery refenrence here in code but it solved now and the error was it was using incomaptible jquery refenece.
-
首先,一些建议: 在开发页面时,将JavaScript和CSS添加到小块中,这样在您了解正在发生的事情之前,您的页面/站点不会变得难以管理。 添加新内容时,有时在标记中添加CSS会很有帮助。 然后确保问题不是由链接问题引起的。 现在回答你的问题。 根据您的页面,看起来您的HTML搞砸了。 我所做的只是从Superfish v1.4.8示例页面复制HTML并替换您的菜单。 看起来您的菜单缺少菜单的许多必要类。 例如,查看顶部菜单元素和示例之间的区别: 您的代码:
-
关于你的大空间问题: 好的,基于我们的交换,并使用jQuery,你可以: 将所有辅助子菜单项添加到主子菜单,紧跟在用于包含它们的主子菜单项之后。 将css类添加到所述项目以便能够定位它们(如果需要)。 将一个menu-changed类添加到#navigation div中,并为其添加一组自定义样式(以便它们仅在JS执行时才有效)。 jQuery的: $(document).ready(function() { $("#navigation li ul li ul").each(function() ...
-
好的,这需要一段时间才能完全调试,Superfish的主要功能是你的菜单应该在添加Superfish增强功能之前工作,而不是你自己的文档(用我的粗体): Superfish是一个增强的Suckerfish风格菜单jQuery插件, 它采用现有的纯CSS下拉菜单 (因此它在没有JavaScript的情况下优雅地降级)并添加了以下备受追捧的增强功能 原始问题 你得到延迟的原因是因为你没有将CSS中的li.sfHover规则应用到li:hover也被使用的相同位置,例如 #header .webmenu .mai ...
-
为了水平显示它们,您只需添加display:flex而不是display:block 。 希望这对你有帮助。 ul { list-style-type: none; margin: 0; padding: 0; } ul li { display: inline-block; width: 10em; height: 2em; line-height: 2em; position: relative; bord ...
-
我目前正在使用此代码来解决我工作的网站上的问题: onBeforeShow: function() { if($(this).parents("ul").length > 1){ var w = $(window).width(); var ul_offset = $(this).parents("ul").offset(); var ul_width = $(this).parents("ul").outerWidth(); // Shouldn ...
-
确保父菜单项Marked as expanded 。 您可以在菜单项编辑页面中找到,只需确保选中此复选框即可。 还要检查你是否已经下载了superFish库: https : //github.com/mehrpadin/Superfish-for-Drupal/zipball/master Make sure that parent menu items are Marked as expanded. You can find that in menu item edit page, just make ...
-
我假设superfish是suckerfish的分离... suckerfish需要javascript for ie6支持,所以我假设你需要相同的。 你去了superfish文档页面,有一些脚本列在模块中。 我会关注那些。 基本上,你需要ie6假装悬停在元素上,以显示你的菜单 i'm assuming superfish is a spin off of suckerfish...suckerfish required javascript for ie6 support, so i'll assume ...
-
主菜单中的子项目未经中断(Subitems in main menu uncentered)[2021-10-16]
你错过了一些重要的属性,我重新创建了你的导航栏 这是JSFiddle: https ://jsfiddle.net/y2641f0w/3/ HTML