MCPcopy Create free account
hub / github.com/apache/impala / drop_cache_directives_for_path

Function drop_cache_directives_for_path

tests/query_test/test_hdfs_caching.py:295–299  ·  view source on GitHub ↗

Drop the cache directive for a given path

(path)

Source from the content-addressed store, hash-verified

293
294
295def drop_cache_directives_for_path(path):
296 """Drop the cache directive for a given path"""
297 rc, stdout, stderr = exec_process("hdfs cacheadmin -removeDirectives -path %s" % path)
298 assert rc == 0, \
299 "Error removing cache directive for path %s (%s, %s)" % (path, stdout, stderr)
300
301
302def is_path_fully_cached(path):

Callers 1

Calls 1

exec_processFunction · 0.90

Tested by

no test coverage detected