(path)
| 311 | |
| 312 | |
| 313 | def 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 | |
| 320 | def change_cache_directive_repl_for_path(path, repl): |
no test coverage detected