Customer Portal

JForum to PHPBB3 help

Comments 5

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    try to change constants in defaultProperties file (see Default properites). For large data you have to set -Xmx parameter for jvm too.
  • Avatar
    .jayderyu
    0
    Comment actions Permalink
    thank you I was looking for this. Ok the properties file sais I should not exceed 64kb. Which sound reasonable. The database text is a LONGVARCHAR(2147483647) in size. Doesn't this well exceed 64k, and would it be safe to set the MAX_RECORD_SIZE to say 100 more than that is listed. Just to cover the other record data.

    If some one could give an answer. In the mean time I'm going to see what the longest post is and force a datasize change.
  • Avatar
    .jayderyu
    0
    Comment actions Permalink
    I have managed to get the system to accept the large size. Theres another problem. I get a 1300kb(apx) from the DB, but the writer only does 6kb.


    INFO [main] - Graph definition file: graph/posts.grf
    INFO [main] - Checking graph configuration...
    INFO [main] - Graph configuration is valid.
    INFO [main] - Graph initialization (posts)
    INFO [main] - Initializing connection:
    INFO [main] - DBConnection driver[org.jetel.connection.jdbc.driver.JdbcDriver@ff057f]:jndi[null]:url[jdbc:hsqldb:hsql://192.168.0.10/xdb]:user[sa] ... OK
    INFO [main] - Initializing connection:
    INFO [main] - DBConnection driver[org.jetel.connection.jdbc.driver.JdbcDriver@94884d]:jndi[null]:url[jdbc:mysql://192.168.0.10/sreforum]:user[jasonjarvis] ... OK
    INFO [main] - register MBean with name:org.jetel.graph.runtime:type=CLOVERJMX_1223575998812_0
    INFO [WatchDog] - [Clover] Initializing phase: 0
    DEBUG [WatchDog] - initializing edges:
    DEBUG [WatchDog] - all edges initialized successfully...
    DEBUG [WatchDog] - initializing nodes:
    DEBUG [WatchDog] - APROX_MERGE_JOIN0 ...OK
    DEBUG [WatchDog] - DB_INPUT_TABLE0 ...OK
    DEBUG [WatchDog] - DB_INPUT_TABLE2 ...OK
    DEBUG [WatchDog] - TRASH0 ...OK
    DEBUG [WatchDog] - XLS_WRITER0 ...OK
    INFO [WatchDog] - [Clover] phase: 0 initialized successfully.
    INFO [WatchDog] - Starting up all nodes in phase [0]
    DEBUG [WatchDog] - APROX_MERGE_JOIN0 ... started
    DEBUG [WatchDog] - DB_INPUT_TABLE0 ... started
    DEBUG [WatchDog] - DB_INPUT_TABLE2 ... started
    DEBUG [WatchDog] - TRASH0 ... started
    DEBUG [WatchDog] - XLS_WRITER0 ... started
    INFO [WatchDog] - Sucessfully started all nodes in phase!
    DEBUG [DB_INPUT_TABLE0] - DB_INPUT_TABLE0: Sending query "select * from JFORUM_POSTS"
    DEBUG [DB_INPUT_TABLE2] - DB_INPUT_TABLE2: Sending query "select * from JFORUM_POSTS_TEXT"
    DEBUG [DB_INPUT_TABLE0] - DB_INPUT_TABLE0: Query execution time: 00:00:00.469
    DEBUG [DB_INPUT_TABLE2] - DB_INPUT_TABLE2: Query execution time: 00:00:01.765
    INFO [WatchDog] - ----------------------** Final tracking Log for phase [0] **---------------------
    INFO [WatchDog] - Time: 11/10/08 20:01:44
    INFO [WatchDog] - Node Status Port #Records #KB Rec/s KB/s
    INFO [WatchDog] - ----------------------------------------------------------------------------------
    INFO [WatchDog] - APROX_MERGE_JOIN0 FINISHED_OK
    INFO [WatchDog] - %cpu:.. In:0 240 21 0 0
    INFO [WatchDog] - In:1 240 1318 0 0
    INFO [WatchDog] - Out:0 240 6 0 0
    INFO [WatchDog] - Out:1 0 0 0 0
    INFO [WatchDog] - DB_INPUT_TABLE0 FINISHED_OK
    INFO [WatchDog] - %cpu:.. Out:0 240 21 0 0
    INFO [WatchDog] - DB_INPUT_TABLE2 FINISHED_OK
    INFO [WatchDog] - %cpu:.. Out:0 240 1318 0 0
    INFO [WatchDog] - TRASH0 FINISHED_OK
    INFO [WatchDog] - %cpu:.. In:0 0 0 0 0
    INFO [WatchDog] - XLS_WRITER0 FINISHED_OK
    INFO [WatchDog] - %cpu:.. In:0 240 6 0 0
    INFO [WatchDog] - ---------------------------------** End of Log **--------------------------------
    INFO [WatchDog] - Execution of phase [0] successfully finished - elapsed time(sec): 6
    INFO [WatchDog] - -----------------------** Summary of Phases execution **---------------------
    INFO [WatchDog] - Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
    INFO [WatchDog] - 0 FINISHED_OK 6 9476
    INFO [WatchDog] - ------------------------------** End of Summary **---------------------------
    INFO [WatchDog] - WatchDog thread finished - total execution time: 6 (sec)
    INFO [main] - Freeing graph resources.
    INFO [main] - Execution of graph successful !
  • Avatar
    .jayderyu
    0
    Comment actions Permalink
    ahh, sigh. I think I got it. Almost.
    I've got the joiner in place. I tested it with a flat file. I seemed to be limited to files no bigger than apx 40kb. What's important that data did go where it was supposed to.

    Now I am formatting my fields to match up with the database. I have the reformatter in place and have all the data mapped and stuff.

    Any ideas?

    Tranform
    //#TL
    int post_time = $0.POST_TIME;
    int edit_time = $0.POST_EDIT_TIME;
    string attach = $0.ATTACH;

    // Transforms input record into output record.
    function transform() {
    $0.post_id := $0.POST_ID;
    $0.topic_id := $0.TOPIC_ID;
    $0.forum_id := $0.FORUM_ID;
    $0.poster_id := $0.USER_ID;
    $0.icon_id := 0;
    $0.poster_ip := $0.POSTER_IP;
    $0.post_time := post_time;
    $0.post_approved := true;
    $0.post_reported := false;
    $0.enable_bbcode := $0.ENABLE_BBCODE;
    $0.enable_smilies := $0.ENABLE_SMILIES;
    $0.enable_magic_url := true;
    $0.enable_sig := $0.ENABLE_SIG;
    $0.post_username := "[search]";
    $0.post_subject := $0.SUBJECT;
    $0.post_text := $0.TEXT;
    $0.post_checksum := "";
    $0.post_attachment := attach;
    $0.bbcode_bitfield := "";
    $0.bbcode_uid := "";
    $0.post_postcount := true;
    $0.post_edit_time := edit_time;
    $0.post_edit_reason := "";
    $0.post_edit_user := 0;
    $0.post_edit_count := $0.POST_EDIT_COUNT;
    $0.post_edit_locked := false;
    }



    Result code for Reformat

    DEBUG [WatchDog] - initializing edges:
    DEBUG [WatchDog] - all edges initialized successfully...
    DEBUG [WatchDog] - initializing nodes:
    DEBUG [WatchDog] - APROX_MERGE_JOIN1 ...OK
    DEBUG [WatchDog] - DB_INPUT_TABLE0 ...OK
    DEBUG [WatchDog] - DB_INPUT_TABLE2 ...OK
    DEBUG [WatchDog] - DB_OUTPUT_TABLE0 ...OK
    ERROR [WatchDog] - java.lang.NullPointerException
    ERROR [WatchDog] - Phase initialization failed with reason: REFORMAT0 ...FAILED !
    Reason: null
    REFORMAT0 ...FAILED !
    Reason: null
    at org.jetel.graph.Phase.init(Phase.java:159)
    at org.jetel.graph.runtime.WatchDog.executePhase(WatchDog.java:415)
    at org.jetel.graph.runtime.WatchDog.call(WatchDog.java:177)
    at org.jetel.graph.runtime.WatchDog.call(WatchDog.java:62)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: null
    at org.jetel.component.WrapperTL.init(WrapperTL.java:197)
    at org.jetel.component.RecordTransformTL.init(RecordTransformTL.java:78)
    at org.jetel.component.RecordTransformFactory.createTransform(RecordTransformFactory.java:107)
    at org.jetel.component.Reformat.init(Reformat.java:244)
    at org.jetel.graph.Phase.init(Phase.java:154)
    ... 6 more
    ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!
    INFO [WatchDog] - ----------------------** Final tracking Log for phase [0] **---------------------
    INFO [WatchDog] - Time: 12/10/08 03:12:40
    INFO [WatchDog] - Node Status Port #Records #KB Rec/s KB/s
    INFO [WatchDog] - ----------------------------------------------------------------------------------
    INFO [WatchDog] - APROX_MERGE_JOIN1 READY
    INFO [WatchDog] - %cpu:.. In:0 0 0 0 0
    INFO [WatchDog] - In:1 0 0 0 0
    INFO [WatchDog] - Out:0 0 0 0 0
    INFO [WatchDog] - Out:1 0 0 0 0
    INFO [WatchDog] - DB_INPUT_TABLE0 READY
    INFO [WatchDog] - %cpu:.. Out:0 0 0 0 0
    INFO [WatchDog] - DB_INPUT_TABLE2 READY
    INFO [WatchDog] - %cpu:.. Out:0 0 0 0 0
    INFO [WatchDog] - DB_OUTPUT_TABLE0 READY
    INFO [WatchDog] - %cpu:.. In:0 0 0 0 0
    INFO [WatchDog] - REFORMAT0 ERROR
    INFO [WatchDog] - %cpu:.. In:0 0 0 0 0
    INFO [WatchDog] - Out:0 0 0 0 0
    INFO [WatchDog] - TRASH0 N/A
    INFO [WatchDog] - %cpu:.. In:0 0 0 0 0
    INFO [WatchDog] - ---------------------------------** End of Log **--------------------------------
    INFO [WatchDog] - Execution of phase [0] successfully finished - elapsed time(sec): 0
    INFO [WatchDog] - -----------------------** Summary of Phases execution **---------------------
    INFO [WatchDog] - Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
    INFO [WatchDog] - 0 ERROR 0 3182
    INFO [WatchDog] - ------------------------------** End of Summary **---------------------------
    INFO [WatchDog] - WatchDog thread finished - total execution time: 0 (sec)
    INFO [main] - Freeing graph resources.
    Exception in thread "main" java.lang.NullPointerException
    at org.jetel.connection.jdbc.SQLDataParser.close(SQLDataParser.java:376)
    at org.jetel.component.DBInputTable.free(DBInputTable.java:370)
    at org.jetel.graph.Phase.free(Phase.java:337)
    at org.jetel.graph.TransformationGraph.freeResources(TransformationGraph.java:577)
    at org.jetel.graph.TransformationGraph.free(TransformationGraph.java:822)
    at org.jetel.main.runGraph.runGraph(runGraph.java:381)
    at org.jetel.main.runGraph.main(runGraph.java:310)
  • Avatar
    avackova
    0
    Comment actions Permalink
    You can't use data record out of transform function - that's why you get NPE. Move the whole transform code to transform function.

Please sign in to leave a comment.