[ 
https://issues.apache.org/jira/browse/KYLIN-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276151#comment-15276151
 ] 

Shaofeng SHI commented on KYLIN-1653:
-------------------------------------

If this record doesn't exist in your hbase metadata table, then it is deleted. 
Please try to recover from history backups;

Usually restore metadata only need "backup" -> "restore"; The "reset" step is 
not required; it will delete all resources in the metastore, so please use it 
cautiously. 

Restore a project scope resource is not supportted; but you can only pick up 
the resources that you want to restore:

1. make an empty local folder
2. pick up and copy the resources that you want to recover to this new folder;
3. run restore from this local folder; only the resources that exists in this 
folder will be uploaded; The one that you didn't pick will not be touched in 
metadata table.

I guess your error was just caused that you run a "reset" before restore; the 
restored version doesn't have the "flw_topic_supper.json" so caused data loss.


> Cube metadata lost
> ------------------
>
>                 Key: KYLIN-1653
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1653
>             Project: Kylin
>          Issue Type: Bug
>          Components: Metadata
>    Affects Versions: v1.3.0
>            Reporter: Xingxing Di
>            Assignee: Shaofeng SHI
>
> I have a cube in READY status, today when i build it i got errors 
> "java.lang.IllegalStateException: No resource found at -- 
> /cube_desc/flw_topic_supper.json", i checked metadata in hbase ,it doesn't 
> exist. but i found "/cube_desc/flw_topic_supper.json" still there.
> java.lang.IllegalStateException: No resource found at -- 
> /cube_desc/flw_topic_supper.json
>   at 
> org.apache.kylin.job.hadoop.AbstractHadoopJob.dumpResources(AbstractHadoopJob.java:352)
>   at 
> org.apache.kylin.job.hadoop.AbstractHadoopJob.attachKylinPropsAndMetadata(AbstractHadoopJob.java:298)
>   at 
> org.apache.kylin.job.hadoop.cube.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:81)
>   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
>   at 
> org.apache.kylin.job.common.MapReduceExecutable.doWork(MapReduceExecutable.java:120)
>   at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
>   at 
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:51)
>   at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
>   at 
> org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:130)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:745)
> result code:2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to