Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5659

dfsadmin -report doesn't output cache information properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: caching
    • Labels:
      None

      Description

      I tried to cache a file by "hdfs cacheadmin -addDirective".

      I thought the file was cached because "CacheUsed" at jmx was more than 0.

      {
          "name" : "Hadoop:service=DataNode,name=FSDatasetState-DS-1043926324-172.28.0.102-50010-1385087929296",
          "modelerType" : "org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl",
          "Remaining" : 5604772597760,
          "StorageInfo" : "FSDataset{dirpath='[/hadoop/data1/dfs/data/current, /hadoop/data2/dfs/data/current, /hadoop/data3/dfs/data/current]'}",
          "Capacity" : 5905374474240,
          "DfsUsed" : 11628544,
          "CacheCapacity" : 1073741824,
          "CacheUsed" : 360448,
          "NumFailedVolumes" : 0,
          "NumBlocksCached" : 1,
          "NumBlocksFailedToCache" : 0,
          "NumBlocksFailedToUncache" : 0
        },
      

      But "dfsadmin -report" didn't output the same value as jmx.

      Configured Cache Capacity: 0 (0 B)
      Cache Used: 0 (0 B)
      Cache Remaining: 0 (0 B)
      Cache Used%: 100.00%
      Cache Remaining%: 0.00%
      

        Attachments

        1. hdfs-5659-1.patch
          6 kB
          Andrew Wang
        2. hdfs-5659-2.patch
          8 kB
          Andrew Wang
        3. hdfs-5659-3.patch
          13 kB
          Andrew Wang

          Activity

            People

            • Assignee:
              andrew.wang Andrew Wang
              Reporter:
              aajisaka Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: