Skip to Content.
Sympa Menu

perfsonar-user - RE: [perfsonar-user] Removing old Cassandra Data

Subject: perfSONAR User Q&A and Other Discussion

List archive

RE: [perfsonar-user] Removing old Cassandra Data


Chronological Thread 
  • From: Andrew Lake <>
  • To: Andreas Demetriou <>, Dan Doyle <>
  • Cc: "" <>
  • Subject: RE: [perfsonar-user] Removing old Cassandra Data
  • Date: Thu, 1 Dec 2016 16:02:43 +0100
  • Ironport-phdr: 9a23:ldXbYBwJlThMbL7XCy+O+j09IxM/srCxBDY+r6Qd2+wSIJqq85mqBkHD//Il1AaPBtSAra4dwLGI+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFGiTanbr5+MRq6oAvQu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8rxmQwH0higZKzE58XnXis1ug6JdvBKhvAF0z4rNbI2IKPZyYqbRcNUHTmRDQ8lRTTRMDIO+YIsBCOQOMuhWoYrgqVUQsRSzHhOsCP/1xzJSnHL6wa833uI8Gg/GxgwgGNcOvWzIodXzKagSS/66zafVxjvFdfxW2iny45XPfx87p/GDQLJxfNHPxkk0DQ/FiEufqZD8Mj6Ty+8DvW+b7+96WuKujW4qsw5xojmgxsg2lobJgpwaxUre9Slj3Ik1Iti4RFZjYdG6CptQuTqaN4xwQsw4WWFkoiA6xaMauZO9YSMEy4wnygbCZ/CZcIWE+BzuWPyeLDtlnn5oeq+ziw6s/US8zuDwTMq53VZQoiZbj9XBtGoB2wHX58WDTPZ2412v1iyV1w/J7+FJOUA0mrTfK54m2rMwmIQcvEvZEi/yg0r2iLWadkoj+ui28+jnY7PmqYGAN4Jslw3yLKcjltaxDOgiPQUCQnKX9Oah2LH7+E32WrRKjvk4kqnDt5DaINwWqbS/AwBI0ocu8AiwDyy83NQeg3YHMEpJeAibgIjxJ1HOPPf4AO+ng1uyijdryevGPrrnAprXNHjPiarhfa1j5E5G0wczydFf54lICrEaPv7/QE7xtNrEDhAnKQy0xfjoCMlj2o8ER22AH7KZY+vutgqh4O41LuCXLKMYvTvhMfki+ra6hHk1g1IUZu+l0J4adGq5GelOLESWaHHoj94bV2wNu1x6BMDjjhWuVi9Xaj7mU6s46jYqDI+OAoPETImphruKmiamWJBaezYVJEqLFCLBcYmeVuhETCuRL4c1mzoIRJCsUMkn2A3451yy8KZuMueBon5QjpnkztUgorSLzRw=

Hi,

A couple things to check: are you a sudo user when you do this? are you using bash as your shell (the command before it in particular assumes bash)? any errors from the prior command "source /opt/rh/python27/enable”?

Thanks,
Andy



On December 1, 2016 at 8:34:32 AM, Andreas Demetriou () wrote:

 

Yes but when I do I also get an error when I enter:

 

/opt/rh/python27/root/usr/bin/virtualenv --prompt="(esmond)" .

 

The error is:

 

/opt/rh/python27/root/usr/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

 

Thanks,

 

Andreas Demetriou| Placement Network Engineer

 Gigaclear plc

Gigaclear plc, Windrush Court, Abingdon, Oxfordshire, OX14 1SY

M: 07976649731 T: 01865591142 W: www.gigaclear.com

Gigaclear plc is registered in England and Wales with company number 07476617

 

From: Dan Doyle [mailto:]
Sent: 28 November 2016 13:54
To: Andreas Demetriou <>
Cc:
Subject: Re: [perfsonar-user] Removing old Cassandra Data

 

Andreas,

 

Have you done the following before attempting to run the ps_remove_data?

 

cd /usr/lib/esmond
source /opt/rh/python27/enable
/opt/rh/python27/root/usr/bin/virtualenv --prompt="(esmond)" .
. bin/activate

 

 

esmond uses a nonstandard python (2.7) on CentOS6, so the environment must be set up correctly for its various scripts to run correctly, otherwise it may try to run under python 2.6 and get incorrect behavior.

 

Dan Doyle
GlobalNOC Software Developer
1-812-856-3892

 

On Nov 25, 2016, at 12:32 PM, Andreas Demetriou <> wrote:

 

Hi,

 

I’m trying to remove old measurement data from perfsonar, and I try running this command:

 

python /usr/lib/esmond/util/ps_remove_data.py -c usr/lib/esmond/util/ps_remove_data.conf

 

but I get this error:

 

Traceback (most recent call last):

  File "/usr/lib/esmond/util/ps_remove_data.py", line 69, in <module>

    import django

ImportError: No module named Django

 

Can you help with this?

 

Kind Regards,

 

Andreas Demetriou| Placement Network Engineer

 <image001.png>

Gigaclear plc, Windrush Court, Abingdon, Oxfordshire, OX14 1SY

M: 07976649731 T: 01865591142 W: www.gigaclear.com

Gigaclear plc is registered in England and Wales with company number 07476617

 




Archive powered by MHonArc 2.6.19.

Top of Page