Hi,
On Fri, Oct 21, 2011 at 1:16 PM, Mark Roddy <[email protected]> wrote:
> I'm getting a less than useful error message, which I've tracked down
> to coming from inside a try/catch where the exception is re-raised if
> a certain property is set[1].
>
> However, I'm not seeing the stack trace after setting the property.
> I'm specifying it on the command line like such:
> sqoop import \
> -Dsqoop.throwOnError=1 \
> ... "rest of the command"
>
> Is that not the accepted way to specify a system property?
>
I am not familiar with that specific option, but that appears to be a system
property. To set that System property, this should work:
env HADOOP_OPTS="-Dsqoop.throwOnError=1" sqoop
> -Mark
>
> 1:
> } catch (IllegalArgumentException iea) {
> LOG.error("Imported Failed: " + iea.getMessage());
> if (System.getProperty(Sqoop.SQOOP_RETHROW_PROPERTY) != null) {
> throw iea;
> }
> return 1;
>