[
https://issues.apache.org/jira/browse/HBASE-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735403#action_12735403
]
Andrew Purtell commented on HBASE-1638:
---------------------------------------
The script does not seem to work if the filesystem is not local:
{noformat}
[had...@boa01 hbase-0.20.0]$ ./bin/hbase shell /var/tmp/purgewrongfamily.rb
hdfs://localhost:50000/hbase/.META./1028785192/info/1682440087021188177 info
org/apache/hadoop/fs/FileSystem.java:305:in `checkPath':
java.lang.IllegalArgumentException: Wrong FS:
hdfs://localhost:50000/hbase/.META./1028785192/info/1682440087021188177,
expected: file:/// (NativeException)
from org/apache/hadoop/fs/RawLocalFileSystem.java:47:in `pathToFile'
from org/apache/hadoop/fs/RawLocalFileSystem.java:357:in `getFileStatus'
from org/apache/hadoop/fs/FilterFileSystem.java:245:in `getFileStatus'
from org/apache/hadoop/fs/ChecksumFileSystem.java:125:in `<init>'
from org/apache/hadoop/fs/ChecksumFileSystem.java:283:in `open'
from org/apache/hadoop/fs/FileSystem.java:351:in `open'
from org/apache/hadoop/hbase/io/hfile/HFile.java:688:in `<init>'
from sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
... 38 levels...
from org/jruby/Main.java:94:in `main'
from /var/tmp/purgewrongfamily.rb:105:in `load'
from /opt/hbase-0.20.0/bin/../bin/hirb.rb:105
Complete Java stackTrace
java.lang.IllegalArgumentException: Wrong FS:
hdfs://localhost:50000/hbase/.META./1028785192/info/1682440087021188177,
expected: file:///
at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:305)
at
org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:47)
at
org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:357)
at
org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:245)
at
org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:125)
at
org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:283)
at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:351)
at org.apache.hadoop.hbase.io.hfile.HFile$Reader.<init>(HFile.java:688)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.jruby.javasupport.JavaConstructor.new_instance(JavaConstructor.java:226)
at
org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:80)
at
org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:147)
at org.jruby.RubyClass.finvoke(RubyClass.java:353)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:385)
at
org.jruby.java.proxies.ConcreteJavaProxy$2.call(ConcreteJavaProxy.java:40)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:233)
at
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:41)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:46)
at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:542)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:136)
at
org.jruby.java.proxies.ConcreteJavaProxy$ConcreteNewMethod.call(ConcreteJavaProxy.java:148)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59)
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.Ruby.loadFile(Ruby.java:2247)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:58)
at org.jruby.runtime.load.LoadService.load(LoadService.java:250)
at org.jruby.RubyKernel.load(RubyKernel.java:851)
at
org.jruby.RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.call(org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:243)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:152)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:112)
at
opt.hbase_minus_0_dot_20_dot_0.bin.$_dot_dot_.bin.hirb.__file__(hirb.rb:105)
at opt.hbase_minus_0_dot_20_dot_0.bin.$_dot_dot_.bin.hirb.load(hirb.rb)
at org.jruby.Ruby.runScript(Ruby.java:577)
at org.jruby.Ruby.runNormally(Ruby.java:480)
at org.jruby.Ruby.runFromMain(Ruby.java:354)
at org.jruby.Main.run(Main.java:229)
at org.jruby.Main.run(Main.java:110)
at org.jruby.Main.main(Main.java:94)
{noformat}
> hfile has entry from wrong family
> ---------------------------------
>
> Key: HBASE-1638
> URL: https://issues.apache.org/jira/browse/HBASE-1638
> Project: Hadoop HBase
> Issue Type: Bug
> Reporter: stack
> Fix For: 0.20.0
>
> Attachments: purgewrongfamily.rb
>
>
> I have an hfile with an entry from another family. It was give us by bryan
> duxbury.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.