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

Keith Turner commented on ACCUMULO-2050:
----------------------------------------

I looked into this.  HadoopLogCloser currently calls recoverLease() on 
DistributedFileSystem.  In the case of this exception instead of a 
DistributedFileSystem we have a ViewFileSystem (there error message is 
misleading ACCUMULO-2063)  AFAICT  ViewFileSystem does not provide a way to 
translate a viewfs:// path to a hdfs:// path in its API.  This would be needed 
to get the corresponding DistributedFileSystem.  So it seems like the options 
are to not support viewfs or to re-implement the viewfs translation logic in 
Accumulo.   I opened HDFS-5684 in the course of investigating this.   I would 
really like to support viewfs, so I am going to keep poking at this.   If 
anyone has suggestions I would love to hear them.

> log recovery fails when using two namenodes and viewfs://
> ---------------------------------------------------------
>
>                 Key: ACCUMULO-2050
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2050
>             Project: Accumulo
>          Issue Type: Sub-task
>            Reporter: Keith Turner
>             Fix For: 1.6.0
>
>
> See parent ticket for env info.  Saw the following error in log recovery.
> {noformat}
> Failed to initiate log sort 
> viewfs:/nn2/accumulo/wal/ip-10-1-3-25+9997/777b3e10-da00-47d2-819b-24464997d784
>       java.lang.IllegalStateException: Don't know how to recover a lease for 
> org.apache.accumulo.server.fs.VolumeManagerImpl
>               at 
> org.apache.accumulo.server.master.recovery.HadoopLogCloser.close(HadoopLogCloser.java:56)
>               at 
> org.apache.accumulo.master.recovery.RecoveryManager$LogSortTask.run(RecoveryManager.java:89)
>               at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>               at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>               at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>               at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>               at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>               at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>               at 
> org.apache.accumulo.trace.instrument.TraceRunnable.run(TraceRunnable.java:47)
>               at 
> org.apache.accumulo.core.util.LoggingRunnable.run(LoggingRunnable.java:34)
>               at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to