Commit e333707
authored
Handle missing dataproc-role metadata in hive-lineage.sh (#1371)
Replaces the `curl -f` call to the metadata server with the safer `/usr/share/google/get_metadata_value` utility to retrieve the `dataproc-role` attribute.
This change ensures the initialization action completes successfully even if the metadata key is not yet present, by using the standard Dataproc metadata helper and providing a fallback.1 parent faad961 commit e333707
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments