First of all, sampling and callgraph are incompatible collectors (i.e., that can't run at the same time - you wouldn't want to collect sampling data on the instrumented binaries!) so you shouldn't try to use them at the same time.
Second, callgraph requires that the -app and -moi file be the same exact file.
Finally, the -d (duration) option is not applicable to callgraph.
So, in summary, use two different activities to collect callgraph vs. sampling data, and thus you do not need -master. For callgraph, you must specify the same file for -app and -moi and don't use -d.