Giter VIP home page Giter VIP logo

Comments (10)

RunningJon avatar RunningJon commented on July 29, 2024

This benchmark works with GP6.

Does this file exist?
/pivotalguru/TPC-DS/06_single_user_reports/../log/rollout_gen_data.log

What operating system version are you using?

from tpc-ds.

parametriq avatar parametriq commented on July 29, 2024
cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

no, this file (rollout_gen_data.log) is not created
...and after debugging today I'm starting to suspect that somehow "printf >> logfile" doesn't work in functions.sh at the end of log() function. It just quietly does not execute. Sounds crazy, I know

from tpc-ds.

RunningJon avatar RunningJon commented on July 29, 2024

Does this output "foo bar"?
printf "foo bar\n"

from tpc-ds.

parametriq avatar parametriq commented on July 29, 2024

Surely it does.
I even tried to create some stripped down bash construct similar to your code, consisting of a few .sh files in different dirs starting each other. And inside were only PWD variables(BASH_SOURCE[0] magic), printf statements outputting some debug info and one simple function in a func.sh sourced within each of those little bash-scripts using "$PWD/func.sh", "$PWD/../func.sh", etc. The function in its turn "logged" a couple of messages to a file for me with printf "sometext\n" >> somefile. It mimics all the parts of your code I thought could potentially cause trouble on my system and yet it works like a charm!

I started execution with "sudo nohup ... &", gave same permissions to files, kept similar directory structure to make sure everything is exactly the same. It works as it should.

I'm still missing something... rollout_* logs are not created for some another reason.

from tpc-ds.

RunningJon avatar RunningJon commented on July 29, 2024

Try becoming root. The easiest way is:

sudo bash
nohup ./tpcds.sh > tpcds.log 2>&1 < tpcds.log &

Or you can use this command to become root:

sudo su -
nohup ./tpcds.sh > tpcds.log 2>&1 < tpcds.log &

Don't forget to add the "-" after "su".

from tpc-ds.

parametriq avatar parametriq commented on July 29, 2024

The first thing I checked was file permissions and user privileges, so we had already tried that last week. "Sudo bash" -- exactly this way...
Unfortunately it makes no difference. I wish it was that easy.

from tpc-ds.

RunningJon avatar RunningJon commented on July 29, 2024

What timezone are you in? I can host a zoom meeting to debug this issue if you like.

from tpc-ds.

parametriq avatar parametriq commented on July 29, 2024

Well, I think I found something finally!
Your function is simply named log() and called log in the rollout.sh scripts.
But typing log in the terminal on this particular system outputs this:
...
Yeah, that's right, three dots )

Now let's look at this portion of the tpcds.log:

139.tpcds.39.sql
myfilename: /pivotalguru/TPC-DS/01_gen_data/../05_sql/139.tpcds.39.sql
pos: 28
COMPLETE: dsqgen scale 1
...
/pivotalguru/TPC-DS/02_init/rollout.sh
check optimizer
check analyze_root_partition
check gp_autostats_mode

See those three dots? That's exactly where it calls log() function but instead bumps into that "log" thing from the shell.

And this is the root of all my problems:

# type log
log is a function
log ()
{
    printf "%s...\n" "$*"
}

A function for adding "..." at the end of anything. Extremely useful

Those CentOS's were deployed from cloud template images... who could've guessed they contain such interesting modification

from tpc-ds.

RunningJon avatar RunningJon commented on July 29, 2024

Sounds like an easy fix for you then. Do you need anything else before I close this issue?

from tpc-ds.

parametriq avatar parametriq commented on July 29, 2024

No, let's consider this resolved. Many thanks for your willingness to help!

from tpc-ds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.