Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Error when use tool: cptokfs, Help me

2008-08-25
2013-04-25
  • catmonkey_lee
    catmonkey_lee
    2008-08-25

    gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

    I use cptokfs to test the kfs, but there something is wrong.The debug info is:

    08-25-2008 23:32:27.244 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:409) Conn
    ecting to metaserver at: localhost:19998
    08-25-2008 23:32:27.244 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:409) Connecting to metaserver at: localhost:19998
    08-25-2008 23:32:27.247 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:2351) file-id for dir: / (file = auto.txt) is 2
    08-25-2008 23:32:27.247 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:2351) file-id for dir: / (file = auto.txt) is 2
    08-25-2008 23:32:27.305 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:1792) allocate: fid=4 offset: 0 failed with code(-28): No space left on device
    08-25-2008 23:32:27.305 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsClient.cc:1792) allocate: fid=4 offset: 0 failed with code(-28): No space left on device
    08-25-2008 23:32:27.306 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsWrite.cc:141) ----Write done: asked: 32902, got: 0-----
    08-25-2008 23:32:27.306 DEBUG - (/home/ajt/project/others/kfs-0.2.1/src/cc/libkfsClient/KfsWrite.cc:141) ----Write done: asked: 32902, got: 0-----

    When I compile the kfs, At cmake stage, error info is :
    -- Found JNI...building kfs_access
    CMake Error: This project requires some variables to be set,
    and cmake can not find them.
    Please set the following variables:
    JAVA_INCLUDE_PATH (ADVANCED)
    JAVA_INCLUDE_PATH2 (ADVANCED)

    so, I just comment these codes in CMakeLists.txt file, just like this:
    #IF (NOT ${JAVA_INCLUDE_PATH} STREQUAL "")
    #   message(STATUS "Found JNI...building kfs_access")
    #   include_directories ( ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} )
    #   add_subdirectory (src/cc/access)
    #ENDIF (NOT ${JAVA_INCLUDE_PATH} STREQUAL "")

    Is this the reason which cause the run time error ??? If it's true, how can I config the values in the CMakeLists.txt.

     
    • sriramsrao
      sriramsrao
      2008-09-09

      There are two issues:
      - first, make sure you are providing at least 256MB space for each chunkserver
      - You seem to have installed Java in a non-standard place.  Edit CMakeCache.txt and fill in the vluas for the JAVA paths.

      Sriram

       
    • mothy
      mothy
      2008-12-11

      >- You seem to have installed Java in a non-standard place. Edit CMakeCache.txt and fill in the vluas for >the JAVA paths.

      I ran the following and it seems to work fine.

      cmake -DJAVA_INCLUDE_PATH=/usr/lib/jvm/java-6-sun/include \ -DJAVA_INCLUDE_PATH2=/usr/lib/jvm/java-6-sun/include/linux  \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ ~/project/kfs