Jump to content
We've recently updated our Privacy Statement, available here ×

Jane.Yu

Members
  • Posts

    16
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by Jane.Yu

  1. We have a SSRS report to be converted into Jasper. The group hierarchy is like this: 
    A group (Parent)
        B group (child)  (page break in between)
            Details. 
            
    In Group B, there is a textbox named Investors.
    in page header, there is another textboxB referring the Investors textbox.
    So, in the report output, the textboxB is not printing when that page only has Group A data.
    Example: 
    Page 1:
    TextBoxB: A04
    Group B data
    Page2: 
    TextBoxB:      (it is blank)
    GroupA data

    How can I get the same output in jasper? Thank you very much. 

    Jane

  2. I need to create a domain from a hive table. This table has an array. The following query works well in ambari, but it failed in the derived table tab of domain creation.

    select col1, analysis_d1.column1
       from
       HiveTable LATERAL VIEW explode(analysis_data) adTable AS analysis_d1 
    Here analysis_data is an array from HiveTable.
     
    The error message is listed below, please help. Thank you.
     
    Cannot execute JDBC Query.
    [Tibcosoftware][Hive JDBC Driver][Hive]Error while processing statement: FAILED: 
    Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. 
    Vertex failed, vertexName=Map 1, vertexId=vertex_1496095817591_0903_1_00, diagnostics=[Vertex vertex_1496095817591_0903_1_00 [Map 1] 
    killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: masterfile initializer failed, vertex=vertex_1496095817591_0903_1_00 [Map 1],
     java.lang.RuntimeException: serious problem
  3. There is a field (decimal datatype from hive) with value like: 101110110 (only 0 and 1 in every digit).

    1. I would like to create calculated fields in ad hoc views and extract every position from this value

    1,0,1,1,1,0,1,1,0

    2. I would like to get the count of '1' from this hive field, so the count is 6 for this example.

    I tried to use java function String.valueof(), replace() in the calculated field, and it failed the validation.

    There are no function to convert decimal to string or replace strings in Jasper report server for adhoc view calculated fields.

    We can't change the datatype to string in hive. How can I create these calculated fields? Please help. Thank you.

     

  4. There is a table in hive. It has array like this:  

    tax_idx array<struct<TAX_SEQ_NO:string,TAX_CODE:string,TAX_ID_NO:string>>

    I need to create a domain in Jasper report server and extract TAX_SEQ_NO field. 

    But the following query doesn't work when creating derived table.

    Select field1,

       analysis_d1.TAX_SEQ_NO,

       analysis_d1.TAX_CODE

    from

    hiveTable LATERAL VIEW explode(tax_idx) adTable AS analysis_d1; 

     

    Please help. Thank you.

     

  5. My computer has windows 10 operation system and Jaspersoft studio (6.3.1). 

    It has JDK 1.8.0_101 and Microsoft  JDBC Driver 4.2 for SQL Server installed.

    I have added sqljdbc42.jar to the driver Classpath.

    When I tried to create a data apater for SQL server with JDBC driver , it failed with error message: This driver is not configured for integrated autherntication.

    The Configuration for the data adapter: 

    JDBC Driver: MS SQL Server 2005-2012  com.microsoft.sqlserver.jdbc.SQLServerDriver

    JDBC Url: jdbc:sqlserver://hpdevsql21:1433;databaseName=Test;IntegratedSecurity=True;

    I checked the property of the SQL server, it has SQL Server and Windows Authentication mode, the Configuration manager shows TCP/IP is enabled and default port is 1433.

    Please help, thank you.

  6. I am new to Jasper. I am creating a domain with ~ 1100 items from a single table (this table has 6000 Items). After all Items were moved to the domain, I found some Items are missing. For example, f_day was moved, but f_mon and f_year were missing. So I moved these 2 fields to the domain and now they  are sitting at the bottom in the display tab. I have to use the MOVE TO TOP button manually to move them after the f_day. Is there any way to order them alphabitical automatically? Is the order in the display important if I need to use the domain to create ad hoc view? I have lots of these kind of missing items.

    Thank you very much!

     

×
×
  • Create New...