Package cascading

Examples of cascading.CascadingException


    }

  private void addToken( Class type, int token, String className )
    {
    if( type != null && !type.getName().startsWith( "cascading." ) && token < 128 )
      throw new CascadingException( "serialization annotation tokens may not be less than 128, was: " + token );

    if( tokenClassesMap.containsKey( token ) )
      {
      if( type == null )
        throw new IllegalStateException( "duplicate serialization token: " + token + " for class: " + className + " found in properties" );
View Full Code Here


    try
      {
      Serializer serializer = getSerializationFactory().getSerializer( type );

      if( serializer == null )
        throw new CascadingException( "unable to load serializer for: " + type.getName() + " from: " + getSerializationFactory().getClass().getName() );

      return serializer;
      }
    catch( NullPointerException exception )
      {
      throw new CascadingException( "unable to load serializer for: " + type.getName() + " from: " + getSerializationFactory().getClass().getName() );
      }
    }
View Full Code Here

    try
      {
      Deserializer deserializer = getSerializationFactory().getDeserializer( getClass( className ) );

      if( deserializer == null )
        throw new CascadingException( "unable to load deserializer for: " + className + " from: " + getSerializationFactory().getClass().getName() );

      return deserializer;
      }
    catch( NullPointerException exception )
      {
      throw new CascadingException( "unable to load deserializer for: " + className + " from: " + getSerializationFactory().getClass().getName() );
      }
    }
View Full Code Here

    boolean isLocal = false;

    for( JobConf fromJob : fromJobs )
      {
      if( fromJob.get( "mapred.input.format.class" ) == null )
        throw new CascadingException( "mapred.input.format.class is required, should be set in source Scheme#sourceConfInit" );

      configs.add( HadoopUtil.getConfig( toJob, fromJob ) );
      Collections.addAll( allPaths, FileInputFormat.getInputPaths( fromJob ) );

      if( !isLocal )
        isLocal = HadoopUtil.isLocal( fromJob );
      }

    if( !allPaths.isEmpty() ) // it's possible there aren't any
      FileInputFormat.setInputPaths( toJob, (Path[]) allPaths.toArray( new Path[ allPaths.size() ] ) );

    try
      {
      toJob.set( "cascading.multiinputformats", HadoopUtil.serializeBase64( configs, toJob, true ) );
      }
    catch( IOException exception )
      {
      throw new CascadingException( "unable to pack input formats", exception );
      }

    if( isLocal )
      HadoopUtil.setLocal( toJob );
    }
View Full Code Here

      }

    @Override
    public void operate( FlowProcess flowProcess, FunctionCall functionCall )
      {
      throw new CascadingException( "testing" );
      }
View Full Code Here

          {
          return advance();
          }
        catch( IOException exception )
          {
          throw new CascadingException( "unable to advance values iterator", exception );
          }
        }
      };
      }
    };
View Full Code Here

      {
      return UserGroupInformation.getCurrentUser();
      }
    catch( IOException exception )
      {
      throw new CascadingException( "unable to get current user", exception );
      }
    }
View Full Code Here

          }
        }
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to start input/output", exception );
      }

    if( role != IORole.source )
      collector = new MeasuredOutputCollector( flowProcess, SliceCounters.Write_Duration, createOutputCollector() );
View Full Code Here

      {
      this.output = (KeyValueWriter) logicalOutput.getWriter();
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to get writer", exception );
      }
    }
View Full Code Here

        logicalOutput.start();
        }
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to start input/output", exception );
      }

    super.prepare();
    }
View Full Code Here

TOP

Related Classes of cascading.CascadingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.