首页 \ 问答 \ 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 to Hadoop lib directory, because I am not allowed to change such configurations 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;
}

相关问答

更多
  • 配置文件设置有高度问题,因为您将其设置为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 ...
  • 你错过了一些重要的属性,我重新创建了你的导航栏 这是JSFiddle: https ://jsfiddle.net/y2641f0w/3/ HTML

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)