hbase shell 启动报错
启动hbase之后,发现hbase shell启动报错:
version 2.0.0-alpha4, r5c4b985f89c99cc8b0f8515a4097c811a0848835, Tue Oct 31 16:00:33 PDT 2017
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.TerminalFactory.create(TerminalFactory.java:101)
at jline.TerminalFactory.get(TerminalFactory.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:438)
at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:360)
at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:40)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:328)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:141)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:145)
at org.jruby.RubyClass.newInstance(RubyClass.java:994)
at org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
at usr.java.hbase_minus_2_dot_0_dot_0_minus_alpha4.bin.hirb.invokeOther148:print_banner(/usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:175)
at usr.java.hbase_minus_2_dot_0_dot_0_minus_alpha4.bin.hirb.RUBY$script(/usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:175)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.jruby.ir.Compiler$1.load(Compiler.java:95)
at org.jruby.Ruby.runScript(Ruby.java:827)
at org.jruby.Ruby.runNormally(Ruby.java:746)
at org.jruby.Ruby.runNormally(Ruby.java:764)
at org.jruby.Ruby.runFromMain(Ruby.java:577)
at org.jruby.Main.doRunFromMain(Main.java:417)
at org.jruby.Main.internalRun(Main.java:305)
at org.jruby.Main.run(Main.java:232)
at org.jruby.Main.main(Main.java:204)
Took 0.0120 seconds
Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
<init> at jline/console/ConsoleReader.java:228
<init> at jline/console/ConsoleReader.java:219
<init> at jline/console/ConsoleReader.java:207
initReadline at org/jruby/ext/readline/Readline.java:105
getHolderWithReadline at org/jruby/ext/readline/Readline.java:143
s_readline at org/jruby/ext/readline/Readline.java:169
call at org/jruby/ext/readline/Readline$INVOKER$s$s_readline.gen:-1
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:358
call at org/jruby/runtime/callsite/CachingCallSite.java:195
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:323
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
yieldSpecific at org/jruby/runtime/IRBlockBody.java:84
yieldSpecific at org/jruby/runtime/Block.java:134
yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:419
interpret at org/jruby/ir/instructions/YieldInstr.java:74
processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:187
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:111
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
call at org/jruby/runtime/callsite/CachingCallSite.java:177
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
call at org/jruby/runtime/IRBlockBody.java:73
call at org/jruby/runtime/Block.java:124
call at org/jruby/RubyProc.java:289
call19 at org/jruby/RubyProc.java:273
call at org/jruby/RubyProc$INVOKER$i$0$0$call19.gen:-1
call at org/jruby/internal/runtime/methods/DynamicMethod.java:196
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
call at org/jruby/runtime/callsite/CachingCallSite.java:163
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
call at org/jruby/runtime/callsite/CachingCallSite.java:163
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
yieldSpecific at org/jruby/runtime/IRBlockBody.java:84
yieldSpecific at org/jruby/runtime/Block.java:134
loop at org/jruby/RubyKernel.java:1298
call at org/jruby/RubyKernel$INVOKER$s$0$0$loop.gen:-1
call at org/jruby/internal/runtime/methods/JavaMethod.java:498
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
call at org/jruby/runtime/callsite/CachingCallSite.java:83
interpret at org/jruby/ir/instructions/CallBase.java:428
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
doYield at org/jruby/runtime/IRBlockBody.java:186
yield at org/jruby/runtime/BlockBody.java:116
yield at org/jruby/runtime/Block.java:165
enter at org/jruby/RubyContinuation.java:107
rbCatch19Common at org/jruby/RubyKernel.java:1127
rbCatch19 at org/jruby/RubyKernel.java:1120
call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
call at org/jruby/runtime/callsite/CachingCallSite.java:177
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:109
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:95
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
call at org/jruby/runtime/callsite/CachingCallSite.java:83
interpret at org/jruby/ir/instructions/CallBase.java:428
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
invokeOther153:eval_input at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:199
block in start at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:199
yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:156
yield at org/jruby/runtime/BlockBody.java:114
yield at org/jruby/runtime/Block.java:165
enter at org/jruby/RubyContinuation.java:107
rbCatch19Common at org/jruby/RubyKernel.java:1127
rbCatch19 at org/jruby/RubyKernel.java:1120
call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
call at org/jruby/runtime/callsite/CachingCallSite.java:177
invokeOther195:catch at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:198
start at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:198
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:77
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:152
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
call at org/jruby/runtime/callsite/CachingCallSite.java:131
invokeOther198:start at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:204
<main> at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:204
invokeWithArguments at java/lang/invoke/MethodHandle.java:627
load at org/jruby/ir/Compiler.java:95
runScript at org/jruby/Ruby.java:827
runNormally at org/jruby/Ruby.java:746
runNormally at org/jruby/Ruby.java:764
runFromMain at org/jruby/Ruby.java:577
doRunFromMain at org/jruby/Main.java:417
internalRun at org/jruby/Main.java:305
run at org/jruby/Main.java:232
main at org/jruby/Main.java:204
问题原因:/usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/jline-0.9.94.jar 版本低了
解决办法:
rm -rf /usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/jline-0.9.94.jar
cp /usr/java/apache-hive-2.1.1-bin/lib/jline-2.12.jar /usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/
hbase shell 启动报错的更多相关文章
- Hbase master启动报错:Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster Caused by: java.net.UnknownHostException:
Hbase master启动报错: java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop ...
- 【原创】大叔问题定位分享(24)hbase standalone方式启动报错
hbase 2.0.2 hbase standalone方式启动报错: 2019-01-17 15:49:08,730 ERROR [Thread-24] master.HMaster: Failed ...
- Oracle启动报错ORA-03113解决
环境:RHEL6.4 + Oracle 11.2.0.4 步骤摘要:1.启动报错ORA-031132.查看alert日志查找原因3.根据实际情况采取合理的措施,这里我们先增加闪回区大小,把库启动起来4 ...
- Hbasewindows系统下启动报错及解决办法
今天在本地windows电脑上,装pinpoint时,需要先安装一个Hbase数据库,按照教程下载启动Hbase数据库时,却启动报错:java.io.IOException: Could not lo ...
- SpringBoot启动报错Failed to determine a suitable driver class
SpringBoot启动报错如下 Error starting ApplicationContext. To display the conditions report re-run your app ...
- hive启动报错(整合spark)
spark整合hive后,hive启动报错: ls: cannot access /export/servers/spark/lib/spark-assembly-*.jar: No such fil ...
- Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
- 【原】tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig的解决
现象: tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig() ...
- Oracle启动报错ORA-27102解决
环境:RHEL5.5 + Oracle 10.2.0.4 此错误一般是因为数据库的初始化参数文件的内存设置不当导致.本例是因为操作系统参数设置问题导致. 当前现象:Oracle启动报错ORA-2710 ...
随机推荐
- 《VS2010/MFC编程入门教程》——读书笔记
推荐两个比较好的学习网站:http://v.dxsbb.com/jisuanji/555/ http://www.jizhuomi.com/software/257.html MFC全称Microso ...
- C艹函数与结构体
传递指针 代码: #include <iostream> #include <cmath> struct polar{ double distance; double angl ...
- android学习中遇到的错误
1.运行项目的时候报错: [2013-12-16 17:59:22 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowExcept ...
- 如何以Java实现网页截图技术
转自 http://blog.csdn.net/cping1982/article/details/5353049 今天看到某网友关于“如何以Java实现网页截图技术”的咨询帖,由于出现该咨询的地 ...
- python-切片实例
针对list或tuple取指定范围的操作.可以使用切片(slice),非常有用 1.list:可变数组 L=['a','b','c','d','e'] >>> L[0:3] #从第0 ...
- 多线程系列八:线程安全、Java内存模型(JMM)、底层实现原理
一.线程安全 1. 怎样让多线程下的类安全起来 无状态.加锁.让类不可变.栈封闭.安全的发布对象 2. 死锁 2.1 死锁概念及解决死锁的原则 一定发生在多个线程争夺多个资源里的情况下,发生的原因是 ...
- e798. 显示JSlider的标记标签
This example demonstrates how to display labels (numerical values) at the major ticks (see e797 显示JS ...
- 因修改/etc/sudoers权限导致sudo和su不能使用的解决方法
因为修改了/etc/sudoers以及相关权限,导致sudo无法使用,恰好Ubuntu的root密码没有设置,每次执行 su - 时.输入密码,提示:认证错误 . 解决方法: 1.重启ubuntu,启 ...
- 每天一个linux命令:cat 命令
cat命令的用途是连接文件或标准输入并打印.这个命令常用来显示文件内容,或者将几个文件连接起来显示,或者从标准输入读取内容并显示,它常与重定向符号配合使用. 1.命令格式: cat [选项] [文件] ...
- win10上跑 sqlserver 2000应用程序
将SQL Server 安装程序\X86\SYSTEM\SQLUNIRL.DLL 替换到Win10 的 C:\windows\system32\目录下,64位win10 还要复制到SYSWOW64目录 ...