STDERR from a script is written to the STDERR of the SQL-MapReduce execution framework and can be found in its logs.