hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7427) [ HTTPS Only ] Fetchimage will not work when we enable cluster with HTTPS only
Date Mon, 24 Nov 2014 07:10:12 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brahma Reddy Battula updated HDFS-7427:
---------------------------------------
    Description: 
Scenario:

Start cluster in securemode and enable only HTTPS
Run fectchimage command 

 [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage /srv/image
No GC_PROFILE is given. Defaults to medium.
fetchImage: FileSystem file:/// is not an HDFS file system
Usage: java DFSAdmin [-fetchImage <local directory>]

{code}
public int fetchImage(final String[] argv, final int idx) throws IOException {
    Configuration conf = getConf();
    final URL infoServer = DFSUtil.getInfoServer(
        HAUtil.getAddressOfActive(getDFS()), conf,
        DFSUtil.getHttpClientScheme(conf)).toURL();
    SecurityUtil.doAsCurrentUser(new PrivilegedExceptionAction<Void>() {
      @Override
      public Void run() throws Exception {
        TransferFsImage.downloadMostRecentImageToDirectory(infoServer,
            new File(argv[idx]));
        return null;
      }
    });
    return 0;
  }

{code}

  was:
Scenario:

Start cluster in securemode and enable only HTTPS
Run fectchimage command 

 *
 [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage file:///srv/Bigdata* 
No GC_PROFILE is given. Defaults to medium.
log4j:WARN Failed to set property [maxBackupIndex] to value "". 
OutPut : 123456
{color:red}fetchImage: Unable to download to any storage directory{color}


> [ HTTPS Only ] Fetchimage will not work when we enable cluster with HTTPS only
> ------------------------------------------------------------------------------
>
>                 Key: HDFS-7427
>                 URL: https://issues.apache.org/jira/browse/HDFS-7427
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Brahma Reddy Battula
>            Priority: Critical
>
> Scenario:
> Start cluster in securemode and enable only HTTPS
> Run fectchimage command 
>  [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage /srv/image
> No GC_PROFILE is given. Defaults to medium.
> fetchImage: FileSystem file:/// is not an HDFS file system
> Usage: java DFSAdmin [-fetchImage <local directory>]
> {code}
> public int fetchImage(final String[] argv, final int idx) throws IOException {
>     Configuration conf = getConf();
>     final URL infoServer = DFSUtil.getInfoServer(
>         HAUtil.getAddressOfActive(getDFS()), conf,
>         DFSUtil.getHttpClientScheme(conf)).toURL();
>     SecurityUtil.doAsCurrentUser(new PrivilegedExceptionAction<Void>() {
>       @Override
>       public Void run() throws Exception {
>         TransferFsImage.downloadMostRecentImageToDirectory(infoServer,
>             new File(argv[idx]));
>         return null;
>       }
>     });
>     return 0;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message