drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Challapalli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4424) Metadata cache file emptied when the drillbit process does not have write permissions
Date Tue, 23 Feb 2016 01:06:18 GMT
Rahul Challapalli created DRILL-4424:
----------------------------------------

             Summary: Metadata cache file emptied when the drillbit process does not have
write permissions
                 Key: DRILL-4424
                 URL: https://issues.apache.org/jira/browse/DRILL-4424
             Project: Apache Drill
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 1.6.0
            Reporter: Rahul Challapalli


Commit # : bb3fc15216d9cab804fc9a6f0e5bd34597dd4394
Commit Date : Dec 7, 2015

I have a directory "lineitem" on maprfs which contains a metadata cache file. Both the folder
and cache file are owned by root.

Now I started drill as user "mapr" and ran "refresh table metadata....." command on "lineitem"
and below is the result

{code}
0: jdbc:drill:zk=10.10.100.183:5181> refresh table metadata dfs.`/drill/testdata/metadata_caching/lineitem`;
+----+---------+
| ok | summary |
+----+---------+
| false | Error: 2049.1804.436520 /drill/testdata/metadata_caching/lineitem/.drill.parquet_metadata
(Permission denied) |
+----+---------+
1 row selected (0.403 seconds)
{code}

Two issues here :
{code}
1. Running the above command actually empties the metadata cache file.
2. Without the cache file, the user "mapr" has permissions to read the data in directory "lineitem".
However when there is cache file in the directory (owned by "root") I get back the above error.
So the presence of the cache file is changing the outcome of the query.
{code}



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

Mime
View raw message