asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subhasis (JIRA)" <>
Subject [jira] [Commented] (ASTERIXDB-1667) Error during ingestion from JSON data file
Date Fri, 30 Sep 2016 20:19:20 GMT


Subhasis commented on ASTERIXDB-1667:

create dataverse newsPaper;
use dataverse newsPaper;

 create type newspaperType if not exists as open{
        articleId: string,
        title: string,
        PublicationDate: int64?,
        location: [int32]?,
        commercial: boolean?,
        localgov: boolean?,
        circulationLevel: string?,
        Start: int64,
        end: int64
    create type authorType if not exists as open{
       name: string?, 
       specialty: string?
    create type newsType if not exists as open{
        articleId: string,
        title: string,
        PublicationDate: int64?,
        newsPaperType: newspaperType,
        authorType: authorType?,
        keywords: [string]?,
        Place: [string]?,
        OrganisationType: [string]?,
        peopleMentioned: [string]?,
        newssection : string?,
        imageURL : string?,
        videoURL : string?, 
        pageNumber : string,
        page : string,
        file : string, 
        content : string
    create dataset news (newsType)
    primary key articleId;
 use dataverse newsPaper;   
   create feed newsFeed using localfs
 ("format"="adm"), ("type-name"="newsType"),("expression"=".*\\.adm"));
 use dataverse newsPaper;
 connect feed newsFeed to dataset news;

> Error during ingestion from JSON data file 
> -------------------------------------------
>                 Key: ASTERIXDB-1667
>                 URL:
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: Adapters, AsterixDB
>         Environment: MAC and Eclipse 
>            Reporter: Subhasis
>              Labels: github-import
> I have found the following error while I was trying to load some JSON data : 
> insert into dataset news  ( for $x in feed-collect ('newsPaper','newsFeed','newsFeed','INTAKE','news','newsType')
return $x);
> Exception in thread "pool-2-thread-1" java.lang.NoClassDefFoundError: Could not initialize
class org.apache.asterix.translator.util.FunctionCollection
> 	at org.apache.asterix.translator.LangExpressionToPlanTranslator.<init>(
> 	at org.apache.asterix.translator.AqlExpressionToPlanTranslator.<init>(
> 	at org.apache.asterix.translator.AqlExpressionToPlanTranslatorFactory.createExpressionToPlanTranslator(
> 	at org.apache.asterix.api.common.APIFramework.compileQuery(
> 	at
> 	at
> 	at
> 	at
> 	at$SubscribeFeedWork$
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> I am attaching my data and the aql scripts 

This message was sent by Atlassian JIRA

View raw message