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

Function get_cache_directive_for_path

tests/query_test/test_hdfs_caching.py:313–317  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

311
312
313def get_cache_directive_for_path(path):
314 rc, stdout, stderr = exec_process("hdfs cacheadmin -listDirectives -path %s" % path)
315 assert rc == 0
316 dirid = re.search(r'^\s+?(\d+)\s+?testPool\s+?.*?$', stdout, re.MULTILINE).group(1)
317 return dirid
318
319
320def change_cache_directive_repl_for_path(path, repl):

Calls 2

exec_processFunction · 0.90
searchMethod · 0.45

Tested by

no test coverage detected