You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 范超 <fa...@mgtv.com> on 2020/08/28 03:37:03 UTC

从savepoint 启动以后,无法在checkpoint页面看到last restore的相关信息

Hi�� ��Һ�
Flink�汾 1.10.0

Ŀǰ�����checkpointʹ��rocksdb�ķ�ʽ�洢��hdfs�ϣ���sinkʧ�ܵ�ʱ���ܹ���������һ��checkpoint��ָ���
��������������������ʹ����������
bin/flink stop -p ${hdfsSavepointDir} -d $runningJobId -yid $yarnAppId

��savepoint�ļ����棬Ȼ����ʹ�ñ����savepoint����������
/bin/flink run -d -m yarn-cluster -p ${parallelism} -yjm ${jm} -ytm ${tm} $fullJarPath -s $savePointFullPath �Cc xxx

�Ƚ��޷�������ǣ�jm��tm��־����ʾ�ɹ������������޷�������checkpoint�ָ��ļ�¼����ͼ��ʾ��
[cid:image001.png@01D67D2F.8B684650]

��֪���Ĵ���֪���Dz��������ﴦ��������ô��

答复: 从savepoint 启动以后,无法在checkpoint页面看到last restore的相关信息

Posted by 范超 <fa...@mgtv.com>.
лл�Ƹ磬�����ˣ� ������ҵĴ����⡣


-----�ʼ�ԭ��-----
������: Yun Tang [mailto:myasuka@live.com] 
����ʱ��: 2020��8��28�� ������ 13:58
�ռ���: user-zh <us...@flink.apache.org>
����: Re: ��savepoint �����Ժ��޷���checkpointҳ�濴��last restore�������Ϣ

Hi ����

��Ȼ���������ͼ���������������������ˣ����е�optionsӦ�÷���jar���ļ���ַǰ��[1]

  1.  class name Ӧ���� jar����ַǰ�� [2]
  2.  savepoint/checkpoint ��ַӦ����jar����ַǰ�� [3]

û����ȷ��checkpoint�ָ���ԭ��Ӧ�������ԭ��

[1] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#usage
[2] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#job-submission-examples
[3] https://ci.apache.org/projects/flink/flink-docs-stable/ops/state/checkpoints.html#resuming-from-a-retained-checkpoint

ף��
����

________________________________
From: zilong xiao <ac...@gmail.com>
Sent: Friday, August 28, 2020 11:45
To: user-zh <us...@flink.apache.org>
Subject: Re: ��savepoint �����Ժ��޷���checkpointҳ�濴��last restore�������Ϣ

ͼ���ˣ���ͼ�����������Ӱ�

���� <fa...@mgtv.com> ��2020��8��28������ ����11:37���

> Hi�� ��Һ�
>
> Flink�汾 1.10.0
>
>
>
> Ŀǰ�����checkpointʹ��rocksdb�ķ�ʽ�洢��hdfs�ϣ���sinkʧ�ܵ�ʱ���ܹ���������һ��checkpoint��ָ���
>
> ��������������������ʹ����������
>
> *bin/flink stop -p ${hdfsSavepointDir} -d $runningJobId -yid 
> $yarnAppId*
>
>
>
> ��savepoint�ļ����棬Ȼ����ʹ�ñ����savepoint����������
>
> */bin/flink run -d -m yarn-cluster -p ${parallelism} -yjm ${jm} -ytm 
> ${tm} $fullJarPath -s $savePointFullPath �Cc xxx*
>
>
>
> �Ƚ��޷�������ǣ�jm��tm��־����ʾ�ɹ������������޷�������checkpoint�ָ��ļ�¼����ͼ��ʾ��
>
>
>
> ��֪���Ĵ���֪���Dz��������ﴦ��������ô��
>

答复: 从savepoint 启动以后,无法在checkpoint页面看到last restore的相关信息

Posted by 范超 <fa...@mgtv.com>.
Hi ���Ƹ磬�յ��������ڲ���һ�¿���
��л��л


-----�ʼ�ԭ��-----
������: Yun Tang [mailto:myasuka@live.com] 
����ʱ��: 2020��8��28�� ������ 13:58
�ռ���: user-zh <us...@flink.apache.org>
����: Re: ��savepoint �����Ժ��޷���checkpointҳ�濴��last restore�������Ϣ

Hi ����

��Ȼ���������ͼ���������������������ˣ����е�optionsӦ�÷���jar���ļ���ַǰ��[1]

  1.  class name Ӧ���� jar����ַǰ�� [2]
  2.  savepoint/checkpoint ��ַӦ����jar����ַǰ�� [3]

û����ȷ��checkpoint�ָ���ԭ��Ӧ�������ԭ��

[1] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#usage
[2] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#job-submission-examples
[3] https://ci.apache.org/projects/flink/flink-docs-stable/ops/state/checkpoints.html#resuming-from-a-retained-checkpoint

ף��
����

________________________________
From: zilong xiao <ac...@gmail.com>
Sent: Friday, August 28, 2020 11:45
To: user-zh <us...@flink.apache.org>
Subject: Re: ��savepoint �����Ժ��޷���checkpointҳ�濴��last restore�������Ϣ

ͼ���ˣ���ͼ�����������Ӱ�

���� <fa...@mgtv.com> ��2020��8��28������ ����11:37���

> Hi�� ��Һ�
>
> Flink�汾 1.10.0
>
>
>
> Ŀǰ�����checkpointʹ��rocksdb�ķ�ʽ�洢��hdfs�ϣ���sinkʧ�ܵ�ʱ���ܹ���������һ��checkpoint��ָ���
>
> ��������������������ʹ����������
>
> *bin/flink stop -p ${hdfsSavepointDir} -d $runningJobId -yid 
> $yarnAppId*
>
>
>
> ��savepoint�ļ����棬Ȼ����ʹ�ñ����savepoint����������
>
> */bin/flink run -d -m yarn-cluster -p ${parallelism} -yjm ${jm} -ytm 
> ${tm} $fullJarPath -s $savePointFullPath �Cc xxx*
>
>
>
> �Ƚ��޷�������ǣ�jm��tm��־����ʾ�ɹ������������޷�������checkpoint�ָ��ļ�¼����ͼ��ʾ��
>
>
>
> ��֪���Ĵ���֪���Dz��������ﴦ��������ô��
>

Re: 从savepoint 启动以后,无法在checkpoint页面看到last restore的相关信息

Posted by Yun Tang <my...@live.com>.
Hi ����

��Ȼ���������ͼ���������������������ˣ����е�optionsӦ�÷���jar���ļ���ַǰ��[1]

  1.  class name Ӧ���� jar����ַǰ�� [2]
  2.  savepoint/checkpoint ��ַӦ����jar����ַǰ�� [3]

û����ȷ��checkpoint�ָ���ԭ��Ӧ�������ԭ��

[1] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#usage
[2] https://ci.apache.org/projects/flink/flink-docs-stable/ops/cli.html#job-submission-examples
[3] https://ci.apache.org/projects/flink/flink-docs-stable/ops/state/checkpoints.html#resuming-from-a-retained-checkpoint

ף��
����

________________________________
From: zilong xiao <ac...@gmail.com>
Sent: Friday, August 28, 2020 11:45
To: user-zh <us...@flink.apache.org>
Subject: Re: ��savepoint �����Ժ��޷���checkpointҳ�濴��last restore�������Ϣ

ͼ���ˣ���ͼ�����������Ӱ�

���� <fa...@mgtv.com> ��2020��8��28������ ����11:37���

> Hi�� ��Һ�
>
> Flink�汾 1.10.0
>
>
>
> Ŀǰ�����checkpointʹ��rocksdb�ķ�ʽ�洢��hdfs�ϣ���sinkʧ�ܵ�ʱ���ܹ���������һ��checkpoint��ָ���
>
> ��������������������ʹ����������
>
> *bin/flink stop -p ${hdfsSavepointDir} -d $runningJobId -yid $yarnAppId*
>
>
>
> ��savepoint�ļ����棬Ȼ����ʹ�ñ����savepoint����������
>
> */bin/flink run -d -m yarn-cluster -p ${parallelism} -yjm ${jm} -ytm ${tm}
> $fullJarPath -s $savePointFullPath �Cc xxx*
>
>
>
> �Ƚ��޷�������ǣ�jm��tm��־����ʾ�ɹ������������޷�������checkpoint�ָ��ļ�¼����ͼ��ʾ��
>
>
>
> ��֪���Ĵ���֪���Dz��������ﴦ��������ô��
>

Re: 从savepoint 启动以后,无法在checkpoint页面看到last restore的相关信息

Posted by zilong xiao <ac...@gmail.com>.
图挂了,用图床工具贴链接吧

范超 <fa...@mgtv.com> 于2020年8月28日周五 上午11:37写道:

> Hi, 大家好
>
> Flink版本 1.10.0
>
>
>
> 目前程序的checkpoint使用rocksdb的方式存储在hdfs上,在sink失败的时候能够正常从上一个checkpoint点恢复。
>
> 问题是由于升级程序,我使用了命令行
>
> *bin/flink stop -p ${hdfsSavepointDir} -d $runningJobId -yid $yarnAppId*
>
>
>
> 将savepoint文件保存,然后再使用保存的savepoint来启动程序
>
> */bin/flink run -d -m yarn-cluster -p ${parallelism} -yjm ${jm} -ytm ${tm}
> $fullJarPath -s $savePointFullPath –c xxx*
>
>
>
> 比较无法理解的是,jm和tm日志都显示成功启动,但是无法看到从checkpoint恢复的记录如下图所示:
>
>
>
> 有知道的大佬知道是不是我哪里处理不正常么?
>