[ 
https://issues.apache.org/jira/browse/HBASE-18529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16118875#comment-16118875
 ] 

Biju Nair edited comment on HBASE-18529 at 8/8/17 7:19 PM:
-----------------------------------------------------------

It will be good to have different local directories for RSes by default. May be 
the place to make the change is to have a unique value for  {{hbase.tmp.dir}} 
which is used for 
[hbase.local.dir|https://github.com/apache/hbase/blob/5cd7f630c21c32b183ec23adcfcd16595d7e72a3/hbase-common/src/main/resources/hbase-default.xml#L106]
 property.  As you suggested, adding ServerName to the directory name is an 
option, hbase + username + ServerName or even hbase + ServerName.


was (Author: gsbiju):
It will be good to have different local directories for RSes by default. May be 
the place to make the change is to have a unique value for  {{hbase.tmp.dir}} 
which is used for 
[hbase.local.dir|https://github.com/apache/hbase/blob/5cd7f630c21c32b183ec23adcfcd16595d7e72a3/hbase-common/src/main/resources/hbase-default.xml#L106]
 property.  As you suggested, adding ServerName to the directory name is an 
option, hbase-+user.name+-ServerName or even hbase-+ServerName.

> Do not delete the tmp jars dir when load the coprocessor jar
> ------------------------------------------------------------
>
>                 Key: HBASE-18529
>                 URL: https://issues.apache.org/jira/browse/HBASE-18529
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>            Reporter: Yun Zhao
>            Assignee: Yun Zhao
>         Attachments: HBASE-18529.master.001.patch, 
> HBASE-18529.master.002.patch
>
>
> When multi regionserver is deployed on a single server, used default 
> hbase.local.dir . The tmp jars dir will deleted when one of them is restarted.
> Also when multi regionserver start at the same time, the jar in the 
> copyToLocalFile process may be deleted, causing the coprocessor load failed.
> {code}
> 2017-08-06 20:02:15,326 ERROR [RS_OPEN_REGION-xxxx-2] 
> regionserver.RegionCoprocessorHost: Failed to load coprocessor xxxx
> ENOENT: No such file or directory
>         at org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmodImpl(Native 
> Method)
>         at 
> org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmod(NativeIO.java:226)
>         at 
> org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:629)
>         at 
> org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:467)
>         at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:456)
>         at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:424)
>         at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:906)
>         at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:887)
>         at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:784)
>         at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:365)
>         at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:338)
>         at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:289)
>         at 
> org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1968)
>         at 
> org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1937)
>         at 
> org.apache.hadoop.fs.FileSystem.copyToLocalFile(FileSystem.java:1913)
>         at 
> org.apache.hadoop.hbase.util.CoprocessorClassLoader.init(CoprocessorClassLoader.java:168)
>         at 
> org.apache.hadoop.hbase.util.CoprocessorClassLoader.getClassLoader(CoprocessorClassLoader.java:250)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to