All, I am trying to write contents oh HTTP response in JSON to ADLS. The JSON is modified for few fields using a Python script in before writing to ADLS. My idea is to once the JSON is modified, connect to ADLS through the Python script itself and write the data. I just wrote the script and am able to write the modified JSON response into my local disk. But I am not sure how can I modify the outputstream.write so that it can write to ADLS. Below is the code.
def process(self, inputStream, outputStream):
text = IOUtils.toString(inputStream, StandardCharsets.UTF_8)
obj = json.loads(text)